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

search for in the

HttpResponse::setContentDisposition> <HttpResponse::setCache
Last updated: Fri, 13 Nov 2009

view this page in

HttpResponse::setCacheControl

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheControlcache control を設定する

説明

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

Cache-Control ヘッダを定義します。 通常は private または public です。

パラメータ

control

キャッシュコントロール設定。

max_age

max-age の秒数。これは、クライアント側での キャッシュエントリの有効期限を表します。

must_revalidate

クライアント側でのキャッシュエントリの再検証を、 リクエストのたびに行うかどうかを指定します。

返り値

成功した場合に TRUE、control が publicprivate あるいは no-cache のいずれかでない場合に FALSE を返します。

参考



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

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