nginx_accept_language_module icon indicating copy to clipboard operation
nginx_accept_language_module copied to clipboard

Vary header

Open singpolyma opened this issue 11 years ago • 3 comments
trafficstars

Does this module also have a way to add ", Accept-Language" to the Vary header -- or is there some good way to do this on nginx generally?

singpolyma avatar Jan 18 '14 18:01 singpolyma

You could use the nginx headers_more module (available separately).to fiddle with the headers.

One way would be to place the set_from_accept_language at the http config level,, and then unser your server(s) use headers more with optional test change the Vary header.

tmorehouse avatar Sep 02 '14 21:09 tmorehouse

Hmm, ok. I may have to look into headers_more again -- though it would be nice if this module could do it, since it's so much a part of what's going on here and standard nginx has no real header appending functions. Thanks for the pointer!

singpolyma avatar Sep 02 '14 21:09 singpolyma

@singpolyma Sorry I had missed your original message. You have a point in that it's often going to be used together but the headers_more cover this use case perfectly and I'm a bit reluctant to add some code specially for this when another module already exist.

giom avatar Sep 03 '14 00:09 giom