Viewing 4 replies - 1 through 4 (of 4 total)
  • You can add the following code to your .htaccess file through the
    File Manager in cPanel or through an FTP application such as CyberDuck or FileZilla (setting up Filezilla) to leverage browser caching (* always back up original files before making any changes*):

    # BEGIN Expire headers
    <ifModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 5 seconds"
        ExpiresByType image/x-icon "access plus 2592000 seconds"
        ExpiresByType image/jpeg "access plus 2592000 seconds"
        ExpiresByType image/png "access plus 2592000 seconds"
        ExpiresByType image/gif "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 648000 seconds"
        ExpiresByType application/javascript "access plus 648000 seconds"
        ExpiresByType application/x-javascript "access plus 648000 seconds"
        ExpiresByType text/html "access plus 600 seconds"
        ExpiresByType application/xhtml+xml "access plus 600 seconds"
    </ifModule>
    # END Expire headers

    You can add the following code to your .htaccess file through the
    File Manager in cPanel or through an FTP application such as CyberDuck or FileZilla (setting up Filezilla) to leverage browser caching (* always back up original files before making any changes*):

    barnez, I have done what you suggested but still get “expiration not specified” What am I doing wrong? I want to make sure it is working.

    Run a test and check the leverage browser caching results here:

    https://tools.pingdom.com/
    https://webpagetest.org/

    Very good tip Barnez. After doing following your guide, my performance of my website increasing nearly 20%.

    Great, Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Google PageSpeed Expiration Not Specified’ is closed to new replies.