Browser Caching Not Working
-
Hello
Add browser caching rules for static assets: Enabled
I see in the .htaccess file that there are new lines as might be expected:
<FilesMatch "\.(css|js|pdf)$"> <IfModule mod_headers.c> Header set Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=2592000, stale-while-revalidate=86400, stale-if-error=604800" </IfModule> </FilesMatch> <FilesMatch "\.(jpg|jpeg|png|gif|ico|eot|swf|svg|webp|avif|ttf|otf|woff|woff2|ogg|mp4|mpeg|avi|mkv|webm|mp3)$"> <IfModule mod_headers.c> Header set Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=31536000, stale-while-revalidate=86400, stale-if-error=604800" </IfModule>
After repeated tests with webpagetest.org , results still show that many files are not getting browser caching eg:
FAILED (No max-age or expires): https://domain.tld/wp-content/uploads/2020/03/logo-1.png
Is there an additional step/action required besides enabling this feature ?
Thanks
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Browser Caching Not Working’ is closed to new replies.