PHP Doku:: Set cache control - function.httpresponse-setcachecontrol.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteHTTPThe HttpResponseHttpResponse::setCacheControl

Ein Service von Reinhard Neidl - Webprogrammierung.

The HttpResponse

<<HttpResponse::setCache

HttpResponse::setContentDisposition>>

HttpResponse::setCacheControl

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheControlSet cache control

Beschreibung

static bool HttpResponse::setCacheControl ( string $control [, int $max_age = 0 [, bool $must_revalidate = true ]] )

Define a custom Cache-Control header, usually being private or public;

Parameter-Liste

control

the primary cache control setting

max_age

the max-age in seconds, suggesting how long the cache entry is valid on the client side

must_revalidate

whether the cached entity should be revalidated by the client for every request

Rückgabewerte

Returns TRUE on success, or FALSE if control does not match one of public, private or no-cache.

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)