FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Avoiding Proxy Caching
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Avoiding Proxy Caching [message #174974 is a reply to message #174963] Thu, 28 July 2011 13:19 Go to previous message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma:
Senior Member
.oO(Álvaro G. Vicario)

> I normally use something like this:
>
> header('Expires: ' . gmdate('D, d M Y H:i:s', time()-86400*365*10) . '
> GMT');
> header('Cache-Control: no-store, no-cache, must-revalidate,
> post-check=0, pre-check=0');
> header('Pragma: no-cache');
>
> If I recall correctly it's the "Pragma" header the one that's designed
> for proxies but I'd say there's no need to cache the password checking
> page not even in browsers.

The 'Pragma' header was defined as a request header. It were broken
browsers like old IE that turned it into a response header, but such a
meaning is not specified.

Micha

--
http://mfesser.de/blickwinkel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to make a function recursive
Next Topic: PHP and Flash
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 19:38:32 GMT 2024

Total time taken to generate the page: 0.04604 seconds