Forum Moderators: coopster

Message Too Old, No Replies

pages that expire straight away

         

bleak26

1:18 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



could u tell me if there is a method to make php pages expire straight away so that they dont get cached at all. I have some gd images wich seem to be getting cached.

Thanks once again for all the help.

Robber

1:30 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



If its the images getting cached that the problem a quick fix can be to stick a query string on the end of them based on a timestamp, eg xyz.gif?x=20060315121212

whoisgregg

3:12 pm on Mar 15, 2006 (gmt 0)

Mr_Fern

8:48 am on Mar 17, 2006 (gmt 0)

10+ Year Member



header('Cache-Control: no-cache, no-store'); // set no caching
header('Expires: '. gmdate('D, d M Y H:i:s \G\M\T', time() - 3600)); // set expiration header to hour before current time