PHP Caching
Posted: Tue Feb 19, 2008 2:39 pm
I think this one is a two parter, but maybe not...
I've created a site that I tried to control the caching scheme through html (I don't use the php header(...) function). It looks roughly like this:
This appears to work for me at home, but at work (I'm behind a proxy) if I visit the site, certain pages expire much quicker (read: immediately) than the Cache-control specifies. These pages are POST pages.
Do I need to send the Cache-control directive through a call to the php function head() or do I need something else?
Thanks
Jerry
PS - the page is here: http://www.divethegreatlakes.com
I've created a site that I tried to control the caching scheme through html (I don't use the php header(...) function). It looks roughly like this:
Code: Select all
<html>
<head>
<meta http-equiv="Cache-Control" content="max-age=86400" />
</head>
<body>
<? include( "getSomeDataFromDB.php" ); ?>
</body>
</html>
Do I need to send the Cache-control directive through a call to the php function head() or do I need something else?
Thanks
Jerry
PS - the page is here: http://www.divethegreatlakes.com