dzinno Posted May 26, 2016 Share Posted May 26, 2016 Hi guys, i have done a website check on gtmetrics: https://gtmetrix.com/reports/najzoo.sk/KmRPpYQv And i see that my web has a grade F on Leverage browser caching. Most of the points have - expiration not specified. Can you please help me with that? How to achieve a better score?Thank you Link to comment Share on other sites More sharing options...
tuk66 Posted May 27, 2016 Share Posted May 27, 2016 Have you enabled CCC > Apache optimization under Advanced Parametres > Performance? Link to comment Share on other sites More sharing options...
dzinno Posted May 29, 2016 Author Share Posted May 29, 2016 I did it now. Thank you for advice. Have a nice day Link to comment Share on other sites More sharing options...
mehere Posted September 2, 2016 Share Posted September 2, 2016 I am experiencing same issue, and CCC+Apache optimization enabled. What is it exactly Apache optimization? Maybe I have some modules not installed on my server? Or any other hints please? Cheers Link to comment Share on other sites More sharing options...
mehere Posted September 10, 2016 Share Posted September 10, 2016 (edited) Hello, no replies but I hope someone is able to help with more details below. My server runs Apache under Nginx as reverse proxy and I have both expires mod enabled in Apache and location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ { expires 365d;} set in Nginx. But, GTmetrix, Pingdom and Google Pagespeed all still suggest to leverage browser caching What am I doing wrong? Cheers M Edited September 10, 2016 by mehere (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted September 10, 2016 Share Posted September 10, 2016 I'm not sure if this will help, but here's what's in my .htaccess file for the expiry dates: <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/font-woff2 "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> Link to comment Share on other sites More sharing options...
mehere Posted September 10, 2016 Share Posted September 10, 2016 Thank you very much for repyling Rocky. My htaccess bears the following which looks to me exactly the same: <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year"</IfModule> Link to comment Share on other sites More sharing options...
rocky Posted September 11, 2016 Share Posted September 11, 2016 You shouldn't be getting any "expiration not specified" messages with those lines. 1 Link to comment Share on other sites More sharing options...
mehere Posted September 11, 2016 Share Posted September 11, 2016 Yep, that's why I don't understand what happens :S Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now