Softaculous


Topic : Leverage browser caching


Posted By: ibnuroem on August 21, 2014, 4:45 pm
Hi all,

Please help me to increase my leverage browser caching score



Thanks a lot

Posted By: Drake on August 21, 2014, 9:19 pm | Post: 1
You have to work on your .htacess file.

This is an example of a configuration in one of my sites:

Code
<IfModule mod_expires.c>
    ExpiresActive On 
    ExpiresByType text/html "access plus 1 seconds"
    ExpiresByType image/x-icon "access plus 2592000 seconds"
    ExpiresByType image/gif "access plus 2592000 seconds"
    ExpiresByType image/jpeg "access plus 2592000 seconds"
    ExpiresByType image/png "access plus 2592000 seconds"
    ExpiresByType application/font-woff "access plus 2592000 seconds"
    ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds"
    ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"   
    ExpiresByType text/css "access plus 604800 seconds"
    ExpiresByType text/javascript "access plus 604800 seconds"
    ExpiresByType application/javascript "access plus 604800 seconds" 
    ExpiresByType application/x-javascript "access plus 604800 seconds" 
    ExpiresByType text/x-js "access plus 604800 seconds"
</IfModule>


I hope it helps

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.