Easyapache4 - mod_ruid2 - mod_expires
Hello,
After migrating from EA3 to EA4, I noticed that mod_expire is not working properly.
I'm using:
Apache 2.4
Mod_Ruid2
PHP54
I ran the test on the link PageSpeed Insights developers.google.com/speed/pagespeed/insights/ and now it appears as not being using the cache The browser. can you help me?
Header unset ETag
FileETag None
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Html
ExpiresByType text/html "access plus 0 seconds"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# Feed
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
# Favicon
ExpiresByType image/x-icon "access plus 1 week"
# Media: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# HTC files
ExpiresByType text/x-component "access plus 1 month"
# Webfonts
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# CSS / JS
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
#For"a o IE a sempre carregar utilizando a "ltima vers"o dispon"vel
Header set X-UA-Compatible "IE=Edge,chrome=1"
Header unset X-UA-Compatible
-
Have you tried switching handler to suPHP and tested then ? 0 -
The problem also happens using suPHP. 0 -
Hello, Are you using PHP-FPM for the affected domain name? If not, feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you. 0 -
Hello, I changed it to PHP-FPM and the problem continues. Support Request ID is: 8326945 0 -
Hello, To update, it was determined the issue was the result of a Mod_Rewrite rule that was redirecting objects such as images through a PHP file. Thank you. 0
Please sign in to leave a comment.
Comments
5 comments