HttpResponse::setCacheControl
(PECL pecl_http >= 0.10.0)
HttpResponse::setCacheControl — Set cache control
설명
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;
인수
- 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
반환값
Returns TRUE on success, or FALSE if control does not match one of public, private or no-cache.
참고
- HttpResponse::getCacheControl() - Get cache control
- HttpResponse::setCache() - Set cache
- HttpResponse::getCache() - Get cache
HttpResponse::setCacheControl
There are no user contributed notes for this page.
