vary

what does this configuration in apache mean?

Header append Vary User-Agent env=!dont-vary Can anyone give a detailed explanation for this? ...

Vary: Accept-Encoding always set to *

Hi Guys, I am trying to set the "Vary:Accept-Encoding" header using ASP.NET MVC and the HttpCompress from blowery. The problem I keep running into is that the header sets to Vary: * instead of Vary:Accept-Encoding Would anyone be able to assist in what would be causing this? ...

In ASP.NET, is it possible to output cache by host name? ie varybyhost or varbyhostheader?

Hi folks, I've got a website that has a number of host headers. Depending on the host header, the results are different - both visually (theme'd) and data. So lets imagine i have a website called 'Foo' - that returns search results (original, eh?). Now, the same code runs both sites. It is physically the same server/website (using Hos...

Is there ever any reason to respond with "Vary: *" and "Vary: Foo" for the same resource?

Is there any reason for a HTTP server to sometimes respond with Vary: *, and sometimes with Vary: Foo, to requests for the same resource? What should a cache do, if after receiving (and caching) both responses, it then receives a request with a matching Foo header, for which the Vary: Foo response is suitable? Can it serve the matchin...

mod_rewrite not sending Vary: accept-language when RewriteCond matches

I have a rewrite rule which redirects to / if no accept-language is present and someone attempts to visit ?lang=en. It works fine, except for the headers returned. Vary: accept-language is missing from the response. RewriteCond %{HTTP:Accept-Language} ^$ RewriteCond %{QUERY_STRING} ^lang=en RewriteRule ^$ ...