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

search for in the

HttpResponse::setCacheControl> <HttpResponse::setBufferSize
Last updated: Fri, 13 Nov 2009

view this page in

HttpResponse::setCache

(PECL pecl_http >= 0.10.0)

HttpResponse::setCacheÖnbellekleme durumu belirlenir

Açıklama

static bool HttpResponse::setCache ( bool $önbellekle )

Öğenin önbelleğe alınıp alınmayacağını belirler.

Bu işlem, istemcilerin If-Modified-Since ve If-None-Match başıklarının sınanması ve gerektiğinde başlıkların önbelleğe alınmasıyla sonuçlanır. Eğer bu başlıklardan biri bir 304 Değişmedi durum koduyla eşleşiyorsa bu gerçekleşir.

Bilginize: Oturumları kullanıyorsanız session.cache_limiter'e "no-cache"'den daha uygun bir şey atamaya çalışın!

Değiştirgeler

önbellekle

Önbellekleme yapılıp yapılmayacağı belirtilir.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Ayrıca Bakınız



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

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