As far as I know, the HTTP Header Vary
specifies a comma separated list of HTTP headers that need to be considered by caches together with the URL when deciding if a request is a cache hit or miss.
If that header is omitted, means that only the URL will be considered.
But what happen when the header is Vary:*
?
A Vary field value of *** signals that unspecified parameters not limited to the request-headers (e.g., the network address of the client), play a role in the selection of the response representation. The * value MUST NOT be generated by a proxy server; it may only be generated by an origin server.
A Vary header field-value of * always fails to match and subsequent requests on that resource can only be properly interpreted by the origin server.
Does it means that all requests with this header are going to be a cache miss?
I find out that ASP.NET is returning that HTTP header if you use their OutputCacheAttribute
, and you have to disable explicitly that behaviour if you don't want the header, or you want to specify custom headers, so I (want to) believe it is unlikely.
Which is the practical meaning of Vary:*
?
Thanks.