Search squid archive

Re: Cache-Control is ignored upon 202 (accept) response (re-post)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/02/2014 10:41 p.m., Boaz Citrin wrote:
> Hello,
> 
> I want to invalidate the cache when my server returns 202 to a PUT
> request, however it seems like Squid ignores the Cache-Control when
> return code is 202.

>From the latest specification
http://tools.ietf.org/html/draft-ietf-httpbis-p2-semantics-26#section-4.3.4

"
   Responses to the PUT method are not cacheable.  If a successful PUT
   request passes through a cache that has one or more stored responses
   for the effective request URI, those stored responses will be
   invalidated (see Section 4.4 of [Part6]).
"

> 
> Tried to set must-revalidate or even not to return any Cache-Control
> header but these all result no update to cache so subsequent GET
> request results HIT while I expect a MISS.
> Note that Vary header is not present in response.
> 
> I am using 2.7.STABLE8 on Windows. No patch, just the installer from
> http://sourceforge.net/projects/squidwindowsmsi/


Your version of Squid is known to be only ~60% compliant with the
HTTP/1.1 specification and it seems this is possibly one of the missing
bits. Please consider an upgrade (sadly that means using a non-Windows
server for Squid).

Amos





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux