masperro / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Cache-Control: only-if-cached incorrectly does request if item not in cache #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.4

When passing 'Cache-Control: only-if-cached' via headers to httplib2
request, if the item is cached, it correctly returns immediately without
doing a new request.  However if the item is not cached, it passes through
the request, when it should immediately return with a 504.

Patch attached.

Original issue reported on code.google.com by cgwalt...@gmail.com on 26 Oct 2007 at 8:23

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in trunk.

Original comment by joe.gregorio@gmail.com on 16 Jul 2009 at 6:59