<?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: Ajax vs Caching</title>
	<atom:link href="http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/</link>
	<description>A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis</description>
	<lastBuildDate>Fri, 03 Feb 2012 00:04:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Douglas</title>
		<link>http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/comment-page-1/#comment-151427</link>
		<dc:creator>Douglas</dc:creator>
		<pubDate>Fri, 13 Feb 2009 13:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=4#comment-151427</guid>
		<description>Man, I tried all these things you said, but I couldn&#039;t fix this caching issue using AJAX.
Now I&#039;m using a simple workaround to make IE do not recognize my request as being the same:

To every AJAX request created, I append to it a parameter called &quot;uid&quot; just like the followint:

var action = &quot;action.do&quot;;  // your normal action string
var date = new Date();
var URL = action + &quot;&amp;uid=&quot; + date.getTime();
xmlHttp.open(&quot;GET&quot;, actionURL, true);
xmlHttp.send(null);

This date.getTime() function returns time in milliseconds, so, the request will never hava the same URL string!

I gave up to unable caching. Either way, this way I don&#039;t need to worry about various kinds of browsers (IE, FF, Opera, Safari...).

Regards,
Douglas.</description>
		<content:encoded><![CDATA[<p>Man, I tried all these things you said, but I couldn&#8217;t fix this caching issue using AJAX.<br />
Now I&#8217;m using a simple workaround to make IE do not recognize my request as being the same:</p>
<p>To every AJAX request created, I append to it a parameter called &#8220;uid&#8221; just like the followint:</p>
<p>var action = &#8220;action.do&#8221;;  // your normal action string<br />
var date = new Date();<br />
var URL = action + &#8220;&amp;uid=&#8221; + date.getTime();<br />
xmlHttp.open(&#8220;GET&#8221;, actionURL, true);<br />
xmlHttp.send(null);</p>
<p>This date.getTime() function returns time in milliseconds, so, the request will never hava the same URL string!</p>
<p>I gave up to unable caching. Either way, this way I don&#8217;t need to worry about various kinds of browsers (IE, FF, Opera, Safari&#8230;).</p>
<p>Regards,<br />
Douglas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: a little madness &#187; Ajax vs Caching vs Firefox 3</title>
		<link>http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/comment-page-1/#comment-105759</link>
		<dc:creator>a little madness &#187; Ajax vs Caching vs Firefox 3</dc:creator>
		<pubDate>Tue, 29 Jul 2008 15:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=4#comment-105759</guid>
		<description>[...] an earlier post, many moons ago, I related some struggles with Ajax page updates and browser caching behaviour. [...]</description>
		<content:encoded><![CDATA[<p>[...] an earlier post, many moons ago, I related some struggles with Ajax page updates and browser caching behaviour. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gaurav</title>
		<link>http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/comment-page-1/#comment-50329</link>
		<dc:creator>gaurav</dc:creator>
		<pubDate>Fri, 28 Dec 2007 20:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=4#comment-50329</guid>
		<description>good work

i had the same problemm  wid the ajax updater..................but nw its seems dat i hv the solution

good work dude</description>
		<content:encoded><![CDATA[<p>good work</p>
<p>i had the same problemm  wid the ajax updater&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;but nw its seems dat i hv the solution</p>
<p>good work dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham</title>
		<link>http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/comment-page-1/#comment-16437</link>
		<dc:creator>Graham</dc:creator>
		<pubDate>Tue, 27 Feb 2007 09:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=4#comment-16437</guid>
		<description>Thanks for this. Nowhere else seems to explain the problem (or indeed that there is a problem)</description>
		<content:encoded><![CDATA[<p>Thanks for this. Nowhere else seems to explain the problem (or indeed that there is a problem)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BarelyBlogging &#187; Blog Archive &#187; links for 2006-05-16</title>
		<link>http://www.alittlemadness.com/2006/04/12/ajax-vs-caching/comment-page-1/#comment-88</link>
		<dc:creator>BarelyBlogging &#187; Blog Archive &#187; links for 2006-05-16</dc:creator>
		<pubDate>Tue, 16 May 2006 00:34:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.alittlemadness.com/?p=4#comment-88</guid>
		<description>[...] Ajax vs Caching How to ensure your AJAX request is not cached. (tags: ajax cache) [...]</description>
		<content:encoded><![CDATA[<p>[...] Ajax vs Caching How to ensure your AJAX request is not cached. (tags: ajax cache) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

