Ticket #6367 (new defect)
[PATCH] Etag responses need Vary header
| Reported by: | Dave Gynn <dgynn@…> | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | etag |
| Cc: |
Description
The Request.check_modified() function which adds the Etag and checks If-None-Match should be adding a "Vary *" header along with the initial response and the 304 response.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.44
This creates a problem of the browser always caching attachments when mod_deflate is used. mod_deflate adds a "Vary Accept-Encoding" header which makes the browser believe that only Accept-Encoding is used to determine cacheability. "Vary *" is needed to let the browser know that other information is used to make caching decisions.
Also note that Request.send_file() function does not send a Cache-Control header. That should be OK if Vary * is sent.


