Re: Caching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux