Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently, when nginx is set to gzip outbound content as requested by the client, the "gzip_vary on" setting will set the following header:

Vary: Accept-Encoding

We would like to modify this to send out:

Vary: Accept-Encoding, User-Agent

Is this possible?


share|improve this question
Is this because of trouble with MSIE6? – Antonis Christofides May 21 '12 at 9:31
up vote 1 down vote accepted

The module ngx_headers_more allows you to change http headers :

more_set_headers -s 200 "Vary: " "Accept-Encoding, User-Agent";

Not tested!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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