3 messages in com.googlegroups.google-desktop-developerCaching XMLHTTPRequests
FromSent OnAttachments
matt...@gmail.com22 May 2007 10:10 
asasson25 May 2007 04:01 
grantwparks26 May 2007 07:58 
Subject:Caching XMLHTTPRequests
From:matt...@gmail.com (matt@gmail.com)
Date:05/22/2007 10:10:15 AM
List:com.googlegroups.google-desktop-developer

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