Antoine Pitrou <pit...@free.fr> added the comment:

> Here is the corrected patch for caching the 301 redirections.
> 
> * It caches only the redirection not the response.
> * It retains cacheable=True kwarg for http_error_301 method. ( I feel, it 
> should be useful)
> * Have made the cached dict as private.

I'm still not sure what this patch is trying to do. It seems you are using the 
cached URL *after* getting the 301 response. But the whole point of caching 
redirections is to avoid emitting the initial request at all.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1755841>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to