Méthode | Description | |
---|---|---|
__construct ( ) | Base constructor. | |
getCacheControl ( ) : array | Returns the current cache control headers as an array. | |
setAsCache ( |
Populates the cache control headers with options so that the browser caches the content. | |
setAsDontCache ( ) | Populates the current cache control headers with options so the content is not cached by the browser. | |
setCacheControl ( array $cacheControl ) | Overwrites the current cache control headers. | |
setCacheControlEntry ( string $key, string $value ) | Sets or adds an entry to cache control headers. |
Méthode | Description | |
---|---|---|
validateCacheControlHeader ( string $header ) : boolean | Checks if the give header name is a valid cache control header. |
public getCacheControl ( ) : array | ||
Résultat | array |
public setAsCache ( |
||
$expirationDate | Defines the date when the cache should expire. |
public setAsDontCache ( ) |
public setCacheControl ( array $cacheControl ) | ||
$cacheControl | array | Array containing new cache control headers. |
public setCacheControlEntry ( string $key, string $value ) | ||
$key | string | Cache control header name. |
$value | string | Cache control header value. |