Afaik UrlFetch uses an internal cache.
Note the two different heders in you logs:
x-google-cache-control=[remote-cache-hit]
x-google-cache-control=[remote-fetch]
To force a fresh urlfetch everytime, add these headers in you request.
connection.addRequestProperty("Cache-Control", "no-cache,max-age=0");
connection.addRequestProperty("Pragma", "no-cache");
Fabrizio
On Sat, Feb 12, 2011 at 12:08 PM, aka1g <[email protected]> wrote:
> Hi!
> I'm fetching webpages and parse them. I have a weird behavior that
> looks like GAE bug.
> One of the pages retrieved has a totally different content.
> I'm getting
> http://www.gamer-district.com/modules/mod_realmcore/mod_realmcore.php
> page, and most of the time it is retrieved incorrectly.
> It can be that some stale/cathed version is returned.
> I am logging http headers and page content.This only happens for this
> particular url.
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.