I have been using w3 Total Cache with the setting to enable Expires Headers and eTags but they are not being set.

I'm serving images and other media from a sub-domain such as static.example.org served by nginx but it didn't work even when I was serving these files with Apache from the main domain.

I've tried disabling and re-enabling the browser caching settings in the admin without success. What do you suggest?

link|improve this question

67% accept rate
feedback

3 Answers

up vote 2 down vote accepted

do you have mod_expires installed and enabled in your apache module?

link|improve this answer
I think actually my setup is so barebones that I cannot even have a .htaccess of sorts. I'll have to put everything back on the same subdomain and make sure mod_expires is turned on. – L. De Leo Nov 5 '10 at 16:12
feedback

If you are using Nginx to serve static content then you will need to manually add your expires headers to your Nginx server file.

Example:

location ~* \.(jpg|png|gif|jpeg|css|js|mp3|wav|swf|mov|doc|pdf|xls|ppt|docx|pptx|xlsx)$ {

                        expires 7776000;

                }
link|improve this answer
feedback

Are you setting up your Wordpress W3 Total Cache with a mirror services or using CDN function. You can refer http://bit.ly/crkufP on how to setup W3TC with CDN services with your desired expiry time frame.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.