Re: Caching

From: Date: Sat, 11 Apr 2009 09:41:26 +0000
Subject: Re: Caching
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-291361@lists.php.net to get a copy of this message
> Hey! About  " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT" " > The problem is the files might change, lets say - every week. How can I use > " Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"" to something like > > Header set Expires "today plus week" > > (or X seconds / y minutes / etc...) In that case you will want to use Cache-Control instead: Header set Cache-Control "private,public,max-age=604800" The max-age is the number of seconds (1 week in this case) that the page is cached for. The private and public determine which kinds of cache should cache it. IIRC (which isn't likely). -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated April 11th)

« previous php.general (#291361) next »