downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

HttpResponse::setContentDisposition> <HttpResponse::setCache
[edit] Last updated: Fri, 30 Nov 2012

view this page in

HttpResponse::setCacheControl

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheControlSet cache control

Opis

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;

Parametry

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

Zwracane wartości

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

Zobacz też:



add a note add a note User Contributed Notes HttpResponse::setCacheControl - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites