simplegy / httplib2

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

The cache can be become corrupt with bogus 301s #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
See here:

  http://intertwingly.net/blog/2007/11/05/Poisoned-Cache

Need some way to control when/if httplib2 caches a 301. 
Maybe track and allow the user to determine how many
days a 301 must be in place before caching it?

Original issue reported on code.google.com by joe.gregorio@gmail.com on 5 Nov 2007 at 4:02

GoogleCodeExporter commented 9 years ago
I had a similar issue with a python tumblr-api library built using httplib2.  I 
had been using the tumblr.com dns entry to pull from the api and there had been 
a redirect put in place to use our blog entry.  As a result httplib2 was 
caching the redirect and dropping the content from the cache.  It was a 
complete headache trying to figure out what was wrong initially.  All I had to 
do was alter my urls, so due to a mixup on communications between myself and 
another developer.  But on the other hand, would be been nice if httplib2 could 
of handled this more gracefully or thrown and exceptions.

Original comment by mga...@gmail.com on 19 Jul 2010 at 3:50