urllib, caching
Steve Holden
steve at holdenweb.com
Wed Feb 15 22:42:30 EST 2006
AndrewJ wrote:
> I've got code:
>
> f= urllib.urlopen("http://www.stuff/nb5.php") ;
>
> This connects to a page that changes in real time. Works ok, and
> retrieves the data the first time.
>
> But then any subsequent calls all return the same data, even though the
> web page itself has changed.
>
> Is there caching going on here? How do I turn it off ?
>
You can call urllib.urlcleanup() to clear the cache.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.python.org/pycon/
More information about the Python-list
mailing list