Leverage browser caching directly into Pre VirtualHost
hi
i have added the following rules:
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 text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
directly into Pre VirtualHost Include in apache configuration via whm, so the effect will be global into all account, it was some 20 minutes ago, does the effect take time ? because pagespeed insights still still showing the Leverage browser caching problem, im under cdn and i deleted the cache from the cdn to store new one
-
never mind, was laking mod_deflate ))) 0 -
got in troubles now, i installed mod_deflate through easyapache, went to httpd.conf and searched for it, and it was not present, neither mod_expires. so added them manually now i cant create the file deflate.conf ! can someone help what to 0 -
got in troubles now, i installed mod_deflate through easyapache, went to httpd.conf and searched for it, and it was not present
Hello, You should not have to manually load the modules if you installed them through EasyApache. Were they visible with the "httpd -M" command? Thank you.0 -
hi thanks for the reply, the problem has been solved through your exellent support staff members, thanks a lot 0 -
I am happy to see the issue is now resolved. Would you mind sharing the solution? Thank you. 0 -
well all the info in the in the web concening leverage cachging under cpanel are expired, installation and configuration are now else, since im under cdn (cloudflare), i just had to activate this under the cdn options 0 -
under cpanel if you use no cdn or anything else (nginx for example), you have to install mod_expires and mod_deflate and add the rules through : Pre VirtualHost Include in apache configuration via whm 0 -
Thank you for updating us with the solution. 0
Please sign in to leave a comment.
Comments
8 comments