httpCache

package

KCFinder @version 3.12 @author Pavel Tzonkov sunhater@sunhater.com

Methods

Check if given modification time is newer than client-side one. If not, the method will tell the client to get the content from its own cache.

checkMTime(integer $mtime,mixed $sendHeaders = null)
static

Afterwards the script process will be terminated. This feature requires the PHP to be configured as Apache module.

Arguments

$mtime

integer

$sendHeaders

mixed

Cache the given $content with $mtime modification time.

content(\kcfinder\binary $content,integer $mtime,string $type = null,integer $expire = null,array $headers = null,boolean $checkMTime = true)
static

Arguments

$content

\kcfinder\binary

$mtime

integer

$type

string

$expire

integer

$headers

array

$checkMTime

boolean

Cache a file. The $type parameter might define the MIME type of the file or path to magic file to autodetect the MIME type. If you skip $type parameter the method will try with the default magic file. Autodetection of MIME type requires Fileinfo PHP extension used in file::getMimeType()

file(string $file,string $type = null,integer $expire = null,array $headers = null)
static

Arguments

$file

string

$type

string

$expire

integer

$headers

array

Constants

DEFAULT_TYPE

DEFAULT_TYPE

DEFAULT_EXPIRE

DEFAULT_EXPIRE