[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

Antoine Pitrou report at bugs.python.org
Mon Dec 28 07:29:41 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

I have trouble understanding what the patch does. I would expect it to
cache the <original URL> -> <redirected URL> mapping, but it seems to
cache the final HTTP response instead.

Also, it's not obvious in which situations the default for `cacheable`
would be overriden. Aren't http_error_301 and friends for internal use?

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1755841>
_______________________________________


More information about the Python-bugs-list mailing list