Re: [squid-users] Cache-Control is ignored upon 202 (accept) response (re-post)

From: Boaz Citrin <bcitrin_at_gmail.com>
Date: Sun, 16 Feb 2014 13:47:24 +0200

Sorry, I confused between PUT and DELETE. Actually the DELETE is
request doesn't invalidate the cache on 202 response.
And this doesn't conform with the spec:
"If a DELETE
   request passes through a cache that has one or more stored responses
   for the effective request URI, those stored responses will be
   invalidated"

Any idea?

On Sun, Feb 16, 2014 at 12:42 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> 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
>
Received on Sun Feb 16 2014 - 11:47:38 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 18 2014 - 12:00:06 MST