I’m using a script to combine my css and js files together, wich results in an url like this:
I am using the following code to set expires and ET’s, but I’m wondering how i can make sure that the above url also gets expires.
<FilesMatch "\.(swf|ico|jpg|jpeg|png|js|css|gif|combine.php)(\.gz)?$">
Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>
Is there any way to achieve this? simply adding combine.php doesn’t work for me.
Thanks!
IMHO, you are doing this the wrong way. You should use the PHP “header()” function within
combine.phpto do this, e.g.but remember to invoke any headers before you emit the compressed output.