<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: XMLHttpRequest and Caching</title>
	<atom:link href="http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/feed" rel="self" type="application/rss+xml" />
	<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching</link>
	<description>HTTP, REST and some Cycling</description>
	<lastBuildDate>Fri, 12 Mar 2010 22:08:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: subbu</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-51502</link>
		<dc:creator>subbu</dc:creator>
		<pubDate>Wed, 27 Jan 2010 19:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-51502</guid>
		<description>You can use one of the following.

 
        req.setRequestHeader(&quot;Cache-Control&quot;, &quot;no-cache&quot;);
        req.setRequestHeader(&quot;Pragma&quot;, &quot;no-cache&quot;);
</description>
		<content:encoded><![CDATA[<p>You can use one of the following.</p>
<p>        req.setRequestHeader(&#8221;Cache-Control&#8221;, &#8220;no-cache&#8221;);<br />
        req.setRequestHeader(&#8221;Pragma&#8221;, &#8220;no-cache&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: radu</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-51483</link>
		<dc:creator>radu</dc:creator>
		<pubDate>Wed, 27 Jan 2010 15:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-51483</guid>
		<description>xmlhttp.setRequestHeader(’Pragma’, ‘Cache-Control: no-cache’);
this didn&#039;t work for me. Apparently setRequestHeader is not a method of the xmlhttp object. 
Instead what I have read in a forum is that even if you do set no-cache and all that stuff on the returned xml from the server, the browsers will still cache if the xmlhttp requests are called in an interval smaller than 2 seconds. And this was actually my problem.
Still I would like to make requests farter than that so if you know any working solution, reply here.</description>
		<content:encoded><![CDATA[<p>xmlhttp.setRequestHeader(’Pragma’, ‘Cache-Control: no-cache’);<br />
this didn&#8217;t work for me. Apparently setRequestHeader is not a method of the xmlhttp object.<br />
Instead what I have read in a forum is that even if you do set no-cache and all that stuff on the returned xml from the server, the browsers will still cache if the xmlhttp requests are called in an interval smaller than 2 seconds. And this was actually my problem.<br />
Still I would like to make requests farter than that so if you know any working solution, reply here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carsten S. Rasmussen</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-40472</link>
		<dc:creator>Carsten S. Rasmussen</dc:creator>
		<pubDate>Fri, 25 Sep 2009 11:47:24 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-40472</guid>
		<description>This worked for me.
xmlhttp.setRequestHeader(&#039;Pragma&#039;, &#039;Cache-Control: no-cache&#039;);</description>
		<content:encoded><![CDATA[<p>This worked for me.<br />
xmlhttp.setRequestHeader(&#8217;Pragma&#8217;, &#8216;Cache-Control: no-cache&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Gedminas</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-22680</link>
		<dc:creator>Marius Gedminas</dc:creator>
		<pubDate>Thu, 19 Mar 2009 10:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-22680</guid>
		<description>Experiments indicate that Expires: -1 only &lt;em&gt;mostly&lt;/em&gt; works (MSIE 6.0.2900.5512.xpsp.080413-2111).  If you do the requests quickly enough, you may still see cached data for some of them.  Specifically, you get cached data if you issue a new XMLHttpRequest within 2 seconds of the old one.</description>
		<content:encoded><![CDATA[<p>Experiments indicate that Expires: -1 only <em>mostly</em> works (MSIE 6.0.2900.5512.xpsp.080413-2111).  If you do the requests quickly enough, you may still see cached data for some of them.  Specifically, you get cached data if you issue a new XMLHttpRequest within 2 seconds of the old one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjie Chen</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-2044</link>
		<dc:creator>Benjie Chen</dc:creator>
		<pubDate>Fri, 05 Sep 2008 12:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-2044</guid>
		<description>A simple &quot;Expires: -1&quot; from the server would do the trick if you don&#039;t want IE6/7 to cache RPC responses. I found &quot;Cache-Control: no-cache&quot; did not work.</description>
		<content:encoded><![CDATA[<p>A simple &#8220;Expires: -1&#8243; from the server would do the trick if you don&#8217;t want IE6/7 to cache RPC responses. I found &#8220;Cache-Control: no-cache&#8221; did not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: florian geiges</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-76</link>
		<dc:creator>florian geiges</dc:creator>
		<pubDate>Wed, 12 Mar 2008 00:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-76</guid>
		<description>to get non-cached-results from internet-explorer you  might also want to send the If-Modified-Since-header with a value of jan 1, 1970 (or new Date(0), for javascript)

does the same as setting cache-control/pragma-headers on the server-side.
</description>
		<content:encoded><![CDATA[<p>to get non-cached-results from internet-explorer you  might also want to send the If-Modified-Since-header with a value of jan 1, 1970 (or new Date(0), for javascript)</p>
<p>does the same as setting cache-control/pragma-headers on the server-side.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Collins</title>
		<link>http://www.subbu.org/blog/2005/10/xmlhttprequest-and-caching/comment-page-1#comment-75</link>
		<dc:creator>Andrew Collins</dc:creator>
		<pubDate>Mon, 24 Oct 2005 21:25:24 +0000</pubDate>
		<guid isPermaLink="false">http://wp.subbu.org/2005/10/xmlhttprequest-and-caching/#comment-75</guid>
		<description>I have posted a handful of bug reports to some AJAX libraries about this issue but they were dismissed. Thank you for researching this matter and providing your results. I hope more AJAX library authors read about this issue and make what fixes they can to them.
</description>
		<content:encoded><![CDATA[<p>I have posted a handful of bug reports to some AJAX libraries about this issue but they were dismissed. Thank you for researching this matter and providing your results. I hope more AJAX library authors read about this issue and make what fixes they can to them.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
