Hi,
We have an issue where ExpiresByType is being ignored. Regardless of gzip being set or not, if the content comes from PHP then no expires header is set:
I've tested this on another server that runs 4.2.7 as well and ExpiresByType does not an expires header on PHP files.
If I change the .php to a .html then it works:
The only difference between those two tests is that the first is a file called test.php and the second test.html - the content is exactly the same.
Is what is set in the .htaccess
Thanks,
We have an issue where ExpiresByType is being ignored. Regardless of gzip being set or not, if the content comes from PHP then no expires header is set:
Code:
Connection:close
Content-Encoding:gzip
Content-Length:24
Content-Type:text/html
Date:Thu, 27 Mar 2014 11:28:58 GMT
Server:LiteSpeed
Vary:Accept-Encoding
X-Powered-By:PHP/5.4.25
Code:
Connection:close
Content-Length:4
Content-Type:text/html
Date:Thu, 27 Mar 2014 11:33:40 GMT
Server:LiteSpeed
X-Powered-By:PHP/5.4.25
If I change the .php to a .html then it works:
Code:
Accept-Ranges:bytes
Cache-Control:max-age=2592000
Connection:close
Content-Length:4
Content-Type:text/html
Date:Thu, 27 Mar 2014 11:49:32 GMT
ETag:"4-53341044-fca806447c8f097c"
Expires:Sat, 26 Apr 2014 11:49:32 GMT
Last-Modified:Thu, 27 Mar 2014 11:49:24 GMT
Server:LiteSpeed
Code:
ExpiresByType text/html A2592000
Thanks,