Unexpected cache rule `ExpiresDefault` found in .htaccess file
-
Hi, I am getting this error on my WordPress 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.You can check the image here > https://prnt.sc/22rqDqVOi0o_
I found this on my websites .htaccess file >
## EXPIRES HEADER CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType image/svg "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType application/javascript "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" </IfModule> ## EXPIRES HEADER CACHING ##
Do I need to all of this code? or just > ExpiresDefault “access 2 days”
You can check the screenshot here > https://prnt.sc/sw70A-S982tq
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Unexpected cache rule `ExpiresDefault` found in .htaccess file’ is closed to new replies.