cache control to a specific file .
Posted: Fri Mar 20, 2009 8:34 am
Hello, I am trying to set an expiry time to one file but it gets the same expiry time that the rest of the files get.
file.php gets 259200 instead of 7200, why is this?
Is the code above wrong?
Thanks.
Code: Select all
<FilesMatch "file.php">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
<FilesMatch ".*">
Header set Cache-Control "max-age=259200, must-revalidate"
</FilesMatch>Is the code above wrong?
Thanks.