Re: Rationale behind storeKey?

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Thu, 26 Jun 2008 23:19:17 +0200

On ons, 2008-06-25 at 10:32 +1000, Mark Nottingham wrote:
> Question: why is the request method used as input to the storeKey?

> What am I missing?

The history of Squid, and in addition the negative cache of error
responses.

Caching of POST results (positive) should be done so that the the result
is cached as if the method was GET, when allowed.

HEAD also should be special-cased more than it already is, but it's a
bit dangerous to use it for updating cached headers as there is numerous
servers sending bad response headers in response to HEAD.. The main
reason why HEAD is still a bit separate from GET is that we still can
not cache partial responses. A HEAD response is a extreme case of a
partial response with 0 octets of the response body.. But the intention
is that there should only be a HEAD entry in the cache if there is no
valid GET entry.

Regards
Henrik

Received on Thu Jun 26 2008 - 21:19:23 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 27 2008 - 12:00:07 MDT