WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache & Expires Headers

WP Super Cache & Expires Headers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you ever figure it out. I usually use w3tc but for some reason am having issues on one site and now using super cache my YSlow grade went from an A to a B because of it.

    mbrsolution
    Participant

    @mbrsolution

    Hi, try the following but before you try make sure you make a copy of your current .htaccess file just in case this settings does not work for you.

    Add the following into your .htaccess file.

    # Create expires headers
    <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
    ExpiresActive on
    ExpiresDefault "access plus 30 days"
    Header unset ETag
    FileETag None
    </FilesMatch>
    # End Create expires headers

    The above worked for me. Also the reason why it might not work for you is the server configuration and or type of server.

    Kind regards

    Thank-you much. It would not work. I ended up deleting both (Super Cache and W3TC), clearing both out and I reinstalled W3TC. Thanks for answering – I am keeping the code for reference.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Super Cache & Expires Headers’ is closed to new replies.