WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
WP Super Cache & Expires Headers (4 posts)

  1. support@ookaisland.com
    Member
    Posted 2 years ago #

    Hi,
    I'm trying to add expires headers to my website pages, and I was wondering if WP Super Cache would allow me to add this to all pages, posts, images, etc. on my website. Or if I would need to set this up via the .htaccess file.

    Thanks
    Danielle

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. Miz.Michele
    Member
    Posted 1 year ago #

    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.

  3. mbrsolution
    Member
    Posted 1 year ago #

    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

  4. Miz.Michele
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic