➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients jjlee, orsenthil, pitrou, vila
Date 2009-12-28.14:56:17
SpamBayes Score 5.446745e-08
Marked as misclassified No
Message-id <1262012179.81.0.39372301043.issue1755841@psf.upfronthosting.co.za>
In-reply-to
Content
> Antoine Pitrou 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   
> cache the final HTTP response instead.

Oops. My mistake. I got carried away by my misunderstanding of the RFC
section on 301. The patch is wrong. I coded it to cache the response
from the redirection instead of just the redirected URL.
I shall write the correct one to cache just the redirection.           
                                               
                                                                       
                                               
> Aren't http_error_301 and friends for internal use?
                                                                       
      
Not really. They are exposed methods and I believe are being used by
clients. There have been bug reports related those redirection         
methods. Even the related Issue735515, explains pretty clearly about
the redirection required. (My bad again and my comment in that issue
is irrelevant.) In this issue, John says that there is no obvious need
to change the interface.  

RFC had a statement along the lines that "301 redirection is cached by
default, unless indicated otherwise". This is where I thought, an option
to turn-off the cacheable behavior might be needed.
                                                   
Thanks for looking at this quickly.
History
Date User Action Args
2009-12-28 14:56:19orsenthilsetrecipients: + orsenthil, jjlee, pitrou, vila
2009-12-28 14:56:19orsenthilsetmessageid: <1262012179.81.0.39372301043.issue1755841@psf.upfronthosting.co.za>
2009-12-28 14:56:18orsenthillinkissue1755841 messages
2009-12-28 14:56:17orsenthilcreate