PHP Doku:: Set cache - function.httpresponse-setcache.html

Verlauf / Chronik / History: (5) anzeigen

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

Ein Service von Reinhard Neidl - Webprogrammierung.

The HttpResponse

<<HttpResponse::setBufferSize

HttpResponse::setCacheControl>>

HttpResponse::setCache

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheSet cache

Beschreibung

static bool HttpResponse::setCache ( bool $cache )

Whether it should be attempted to cache the entity.

This will result in necessary caching headers and checks of clients If-Modified-Since and If-None-Match headers. If one of those headers matches a 304 Not Modified status code will be issued.

Hinweis:

If you're using sessions, be sure that you set session.cache_limiter to something more appropriate than "no-cache"!

Parameter-Liste

cache

whether caching should be attempted

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

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",...)