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
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
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.
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.
You must log in to post.