Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

Thanks.

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

1 Answer 1

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

 
discard

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.