Forum Moderators: phranque
I'm thinking of adding it to the page header using the auto_prepend_file in my php.ini. I already prepend my P3P abbr. tags.
Can I add an additional line to the php.ini with another file prepended? Or is it best to just cram the caching code into the existing file along with the P3P statement?
Also, in RegEx my caching statement looks like this:
ExpiresActive On
ExpiresDefault A21600
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
<FilesMatch "^(error\.html¦forbidden\.html¦authentication\.htm)$">
ExpiresDefault A0
</FilesMatch>
How would I write it to be included in the header? Thanks.
Cache-Control: max-age=2592000, public
Expires: Mon, 29 Jul 2009 13:53:05 GMT
For non-image (page and script) resources, it looks like you want something like:
Cache-Control: must-revalidate, max-age=21600
Expires: Mon, 29 Jun 2009 19:53:05 GMT