3 messages in com.googlegroups.google-desktop-developerRe: Caching XMLHTTPRequests| From | Sent On | Attachments |
|---|---|---|
| matt...@gmail.com | 22 May 2007 10:10 | |
| asasson | 25 May 2007 04:01 | |
| grantwparks | 26 May 2007 07:58 |
| Subject: | Re: Caching XMLHTTPRequests![]() |
|---|---|
| From: | grantwparks (gran...@gmail.com) |
| Date: | 05/26/2007 07:58:53 AM |
| List: | com.googlegroups.google-desktop-developer |
This works for me - and I'm updating once a minute:
XmlHttpObjInstance.setRequestHeader( "If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT" );
On May 25, 5:01 am, asasson <sass...@gmail.com> wrote:
I have a similar problem. how can I have the gadget refresh the cache hourly?
I have an art of the day gadget and I don't know if the art changes every day or not on the users machines...
any help would be appreciated! thanks, amitai
On May 22, 8:10 pm, "matt...@gmail.com" <matt...@gmail.com> wrote:
It appears as though Google Desktop is caching my XMLHttpRequest objects even if they are updated on the host server. I've tried appending a unique qualifier to the URL:
var d = new Date().getTime(); logoRequest_ = new XMLHttpRequest(); RSS_URL = "http://164.121.114.76/SC.xml?ms=" + d; logoRequest_.open("GET", RSS_URL, true);
But as soon as I introduce the "?" to the URL, my objects are no longer updated with content. (No exceptions thrown however). I've also tried setting the following headers:
logoRequest_.setRequestHeader("Cache-Control", "no-cache"); logoRequest_.setRequestHeader("Pragma", "no-cache"); logoRequest_.send();
Which also does not update the content. I thought initially this was due to not destroying the request object, but I've tried all sorts of solutions there as well. Any thoughts?
Thanks! Matt




