How to disable Vary cache header on W3Total Cache plugin [closed]

I use W3 Total Cache as well, so I double checked on my site to see what headers are being sent … and images are not sending anything that varies on User Agent.

An example image response header:

HTTP/1.1 200 OK
Server: nginx
Date: Tue, 27 Mar 2012 15:48:18 GMT
Content-Type: image/png
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.3.8
Last-Modified: Fri, 25 Mar 2011 01:52:43 GMT
ETag: "b5baa1b261894936c4c1da309703fa2a"
Expires: Fri, 29 May 2015 01:34:58 GMT
Content-Encoding: gzip

The Vary header is specifying “accept-encoding,” which makes sense. If your browser doesn’t support gzip encoding, I would naturally want the server to return a different cached file.

But this shows that this isn’t necessarily W3 Total Cache’s fault. Unless you’ve specifically set up a Vary: User-Agent header (i.e. on the Page Cache page where you can cache specific headers), then you’ve got something else going on here.