Unexpected Cache Rule Error
-
Hi, first of all, thank you for such a wonderful plugin.
I am receiving this error in my admin dashboard,
Unexpected cache rule
ExpiresDefault
found in .htaccess file. This rule may cause visitors to see old versions of pages due to the browser caching HTML pages. If you are sure that HTML pages are not being browser cached, this message can be dismissed.I found that AMPFORWP is adding this browser cache, here is my .htaaccess code
AMPFORWPLBROWSERCSTART Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg
ExpiresByType application/vnd.ms-fontobject “access 1 year”
ExpiresByType application/x-font-ttf “access 1 year”
ExpiresByType application/x-font-opentype “access 1 year”
ExpiresByType application/x-font-woff “access 1 year”
ExpiresByType image/svg+xml “access 1 year”
ExpiresByType image/webp “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType image/x-icon “access 1 year”
ExpiresByType text/css “access 3 month”
ExpiresByType text/javascript “access 3 month”
ExpiresByType text/html “access 3 month”
ExpiresByType application/javascript “access 3 month”
ExpiresByType application/x-javascript “access 3 month”
ExpiresByType application/xhtml-xml “access 3 month”
ExpiresByType application/pdf “access 3 month”
ExpiresByType application/x-shockwave-flash “access 3 month”
ExpiresDefault “access 3 month”
</IfModule>Do I have to remove ExpiresDefault? And how can I make plugin cache PHP files instead of a browser?
Please help me with this.
- The topic ‘Unexpected Cache Rule Error’ is closed to new replies.