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: Tue, 17 Nov 2009

view this page in

HttpResponse::setCacheControl

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheControlÖnbellek denetimini etkin kılar

Açıklama

static bool HttpResponse::setCacheControl ( string $denetim [, int $ömür = 0 [, bool $yeniden_doğrulanmalı = true ]] )

private (özel) veya public (genel) olarak özel bir Cache-Control başlığı tanımlar.

Değiştirgeler

denetim

Birincil önbellek denetim ayarı.

ömür

Saniye cinsinden ömür; önbellek girdisinin istemci tarafında ne kadar süreyle geçerli olacağını belirler.

yeniden_doğrulanmalı

Önbellekteki öğenin istemci tarafından her istek için yeniden doğrulanıp doğrulanmayacağını belirler.

Dönen Değerler

Başarı durumunda TRUE döner. Aksi takdirde, denetim public, private veya no-cache değerlerinden biri ile eşleşmiyorsa FALSE döner.

Ayrıca Bakınız



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

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