HttpResponse::setCache
(PECL pecl_http >= 0.10.0)
HttpResponse::setCache — Set cache
Описание
static
bool HttpResponse::setCache
( bool $cache
)
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.
Замечание:
If you're using sessions, be sure that you set session.cache_limiter
to something more appropriate than "no-cache"!
Список параметров
-
cache
-
whether caching should be attempted
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.