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

  1. support@ookaisland.com
    Posted 4 years ago #

    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.



  2. Miz.Michele
    Posted 3 years 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
    Posted 3 years 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
    # 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
    Posted 3 years 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

  • WP Super Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic