• After installing the plugin, I’m still receiving the “Leverage Browser Cache” message from PageSpeed with a gif, PNG, and JPG files. The .htaccess file has the expires info generated by W3 Total Cache, but I dont see a reference to JPG’s only JPEG’s – “ExpiresByType image/jpeg A31536000” I’ve been racking my brain for 3 days trying to get rid of the Leverage Browser Cache message as well as searching for others with the same issue.

    Browser caching is currently enabled.

    Any suggestions? Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • How about manually adding the code to your .htaccess file (after backing up first of course):

    # BEGIN Expire headers II
    <ifModule mod_expires.c>
        ExpiresActive On
        ExpiresByType image/jpg "access plus 31536000 seconds"
        ExpiresByType image/gif "access plus 31536000 seconds"
        ExpiresByType image/png "access plus 31536000 seconds"
    </ifModule>
    # END Expire headers II

    Thread Starter lstoudenmire

    (@lstoudenmire)

    Thanks. Ive tried to add just the expires for the jpg, but having trouble getting the htaccess file to update, even after deleting and then uploading new file. Just wasn’t sure if there was a setting within the plugin that I’m overlooking that would include these specific file types.

    I’ll continue to work with trying to manually edit the htaccess file

    You might need to change the permissions temporarily on the .htaccess file to allow you to save the changes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Leverage Browser Cache’ is closed to new replies.