nginx_accept_language_module
nginx_accept_language_module copied to clipboard
Vary header
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?
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.
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 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.