Browser cache not following htaccess rule.
-
This is my htaccess configuration generated by W3TC:
<IfModule mod_expires.c>
ExpiresActive On# Images
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType image/webp “access plus 1 year”
ExpiresByType image/svg+xml “access plus 1 year”
ExpiresByType image/x-icon “access plus 1 year”# Video
ExpiresByType video/webm “access plus 1 year”
ExpiresByType video/mp4 “access plus 1 year”
ExpiresByType video/mpeg “access plus 1 year”# Fonts
ExpiresByType font/ttf “access plus 1 year”
ExpiresByType font/otf “access plus 1 year”
ExpiresByType font/woff “access plus 1 year”
ExpiresByType font/woff2 “access plus 1 year”
ExpiresByType application/font-woff “access plus 1 year”# CSS, JavaScript
ExpiresByType text/css “access plus 1 month”
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”# Others
ExpiresByType application/pdf “access plus 1 month”
ExpiresByType image/vnd.microsoft.icon “access plus 1 year”
</IfModule>I guess this is enough for the browser cache configuration, but google pagespeed insight still diagnoses “Serve static assets with an efficient cache policy” issue. I talked to stackpath CDN enabled to deliver various resources like css,js and images. I talked to the CDN representatives and followed everything they to told, still I am not able to solve this problem. What can be the problem here? Thank you.
- The topic ‘Browser cache not following htaccess rule.’ is closed to new replies.