urllib download insanity

Paul Rubin http
Thu May 12 14:57:00 EDT 2005


Skip Montanaro <skip at pobox.com> writes:
>     Timothy> downloading the OLD file i've deleted! if i download it via IE,
>     Timothy> i get the new file. SO, my only conculsion is that urllib is
>     Timothy> caching it some where. BUT i'm already calling urlcleanup(), so
>     Timothy> what else can i do?  here is the code
> 
> Is there a proxy between you and the web server?

IE also caches extremely aggressively itself.  There are a lot of
different HTTP headers that affect caching.  You have to set ALL of
them to not cache.  You have to set the cache control header AND set
an expiration date in the past, and maybe a couple other things like
that too.



More information about the Python-list mailing list