Ooopppss.. my mistake, im looking at an old version of my app. I think
setting the headers with no-cache is enough and no need for the
timestamp.

On Jun 11, 6:27 pm, mar_novice <[email protected]> wrote:
>      Unfortunately, even using
>
> URL urlObj = new URL(url);
> HttpURLConnection connection = (HttpURLConnection)
> urlObj.openConnection();
> connection.addRequestProperty("Cache-Control", "no-cache,max-age=0");
> connection.addRequestProperty("Pragma", "no-cache");
>
> sometimes give me cached results. I'll try combining the two
> suggestions.
>
> On Jun 11, 9:48 am, mar_novice <[email protected]> wrote:
>
>
>
> >       How quickly? Not that fast. I'm still testing my app and upon
> > refreshing the page, sometimes what I get are the cached results. I
> > even get sometimes the result that was supposed to be "yesterday's"
> > result, meaning, a day old result. Can you somehow explain how the
> > urlfetchservice cache works so that we can somehow avoid getting
> > unexpected results from it. And I thought urlfetch does not do caching
> > but it does. It seems that it is not in the documentation or I just
> > missed it.
>
> >       Adding a timestamp seems a good workaround.
>
> > On Jun 11, 3:01 am, "Ikai L (Google)" <[email protected]> wrote:
>
> > > How quickly are you making requests?
>
> > > One thing to try - I can't guarantee it'll work - is to append a timestamp
> > > parameters to the URL like this:http://www.somedomain.com?v=sometimestamp.
> > > You'll have to balance this against your latency requirements, as the 
> > > cache
> > > is several orders of magnitude faster.
>
> > > On Wed, Jun 9, 2010 at 5:29 AM, mar_novice <[email protected]> 
> > > wrote:
> > > > Is there a way to disable urlfetchService cache? When I made a
> > > > urlfetch, sometimes, what I get is the cached result.
>
> > > > --
> > > > 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]<google-appengine-java%2B
> > > >  [email protected]>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > Ikai Lan
> > > Developer Programs Engineer, Google App Engine
> > > Blog:http://googleappengine.blogspot.com
> > > Twitter:http://twitter.com/app_engine
> > > Reddit:http://www.reddit.com/r/appengine

-- 
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.

Reply via email to