Rationale behind storeKey?

From: Mark Nottingham <mnot_at_yahoo-inc.com>
Date: Wed, 25 Jun 2008 10:32:57 +1000

Question: why is the request method used as input to the storeKey?

In HTTP, you can't cache different things based upon the method; e.g.,
if you cache a POST response (which is legal, just not implemented by
anybody AFAIK), that is cached for future GETs, not POSTs. HEAD could
theoretically be cached as something separate, but in practice it
seems to me that assuring that keeping acccounting for separate GET
and HEAD cache entries correctly (e.g., updating headers, etc.) is
more expensive than just computing a HEAD response based upon a cached
GET.

What am I missing?

Cheers,

--
Mark Nottingham       mnot_at_yahoo-inc.com
Received on Wed Jun 25 2008 - 00:33:36 MDT

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