Why aren't my php files caching locally?
July 4, 2007 6:22 AM
Subscribe
Why aren't my php files caching locally?
I'm using:
$offset = 3600 * 24;
header("Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT");
header('Cache-Control: max-age='.$offset.', must-revalidate');
header("Last-Modified: " . gmdate("D, d M Y H:i:s", $date_cache)." GMT");
None of my php files are being cached in the browser while the js and image files are all getting cached just fine.
I'm using a default install of WAMP5 to put PHP from Win2003.
posted by twine42 to computers & internet (6 comments total)
1 user marked this as a favorite
posted by twine42 at 6:24 AM on July 4, 2007