w3 Total Cache expire headers not set

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.

Read More

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

Related posts

Leave a Reply

2 comments

  1. 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;
    
                    }