<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Caching AJAX Results in&#160;JavaScript</title> <atom:link href="http://davidwalsh.name/cache-ajax/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/cache-ajax</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Chad</title><link>http://davidwalsh.name/cache-ajax#comment-26802</link> <dc:creator>Chad</dc:creator> <pubDate>Thu, 01 Sep 2011 22:39:36 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-26802</guid> <description>Hey GuysI get cachehandle is not defined object !! any ideas???</description> <content:encoded><![CDATA[<p>Hey Guys</p><p>I get cachehandle is not defined object !! any ideas???</p> ]]></content:encoded> </item> <item><title>By: Andy from Workshopshed</title><link>http://davidwalsh.name/cache-ajax#comment-24307</link> <dc:creator>Andy from Workshopshed</dc:creator> <pubDate>Fri, 03 Jun 2011 06:55:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-24307</guid> <description>David, what happens if the page is refreshed in this case, is the cache cleared or will it be preserved?</description> <content:encoded><![CDATA[<p>David, what happens if the page is refreshed in this case, is the cache cleared or will it be preserved?</p> ]]></content:encoded> </item> <item><title>By: gel</title><link>http://davidwalsh.name/cache-ajax#comment-15014</link> <dc:creator>gel</dc:creator> <pubDate>Tue, 05 Jan 2010 07:38:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-15014</guid> <description>btw, the wp pdf plugin don&#039;t works :D</description> <content:encoded><![CDATA[<p>btw, the wp pdf plugin don&#8217;t works :D</p> ]]></content:encoded> </item> <item><title>By: Иван</title><link>http://davidwalsh.name/cache-ajax#comment-11712</link> <dc:creator>Иван</dc:creator> <pubDate>Fri, 04 Sep 2009 11:53:02 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11712</guid> <description>Supposedly a user stays on a page more than 10 minutes. Then there is a chance that the user will stay more.Why destroy the cache then? Why not instead, use HEAD HTTP method and see if the state of the cache is still valid? If it is still valid -- keep it. No need to re-fetch the same data over and over again.Even better, you could set up a cron that fetches the remote data every once in a while, again using HEAD to determine whether or not indeed the cache has expired and then load the data from your local file (preferably json, since it&#039;s kinda fast). Set the reasonable expires headers accordingly to the last modified time of the local item and the update expectancy of the remote source.Of course, this is far from &quot;real time&quot; data, but then again it saves bandwidth, cuts down server load, eliminates network related issues and thus improves user experience.On the other hand, if indeed real-time-like feel is required, we are talking about caching and requesting on a whole new level.</description> <content:encoded><![CDATA[<p>Supposedly a user stays on a page more than 10 minutes. Then there is a chance that the user will stay more.</p><p>Why destroy the cache then? Why not instead, use HEAD HTTP method and see if the state of the cache is still valid? If it is still valid &#8212; keep it. No need to re-fetch the same data over and over again.</p><p>Even better, you could set up a cron that fetches the remote data every once in a while, again using HEAD to determine whether or not indeed the cache has expired and then load the data from your local file (preferably json, since it&#8217;s kinda fast). Set the reasonable expires headers accordingly to the last modified time of the local item and the update expectancy of the remote source.</p><p>Of course, this is far from &#8220;real time&#8221; data, but then again it saves bandwidth, cuts down server load, eliminates network related issues and thus improves user experience.</p><p>On the other hand, if indeed real-time-like feel is required, we are talking about caching and requesting on a whole new level.</p> ]]></content:encoded> </item> <item><title>By: Connie</title><link>http://davidwalsh.name/cache-ajax#comment-11697</link> <dc:creator>Connie</dc:creator> <pubDate>Thu, 03 Sep 2009 10:12:04 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11697</guid> <description>Hi,do I understand that correctly,
that for instance I could cache values from a mysql query which runs to fill the autosuggest-dropdown to use these values to populate other fields of the form after the autosuggested value is accepted by the user?</description> <content:encoded><![CDATA[<p>Hi,</p><p>do I understand that correctly,<br
/> that for instance I could cache values from a mysql query which runs to fill the autosuggest-dropdown to use these values to populate other fields of the form after the autosuggested value is accepted by the user?</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/cache-ajax#comment-11676</link> <dc:creator>David Walsh</dc:creator> <pubDate>Wed, 02 Sep 2009 16:03:31 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11676</guid> <description>&lt;p&gt;@Keith: Hahaha.  My bad -- wrong person.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Keith: Hahaha.  My bad &#8212; wrong person.</p> ]]></content:encoded> </item> <item><title>By: Jeremy Martin</title><link>http://davidwalsh.name/cache-ajax#comment-11660</link> <dc:creator>Jeremy Martin</dc:creator> <pubDate>Wed, 02 Sep 2009 02:23:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11660</guid> <description>An interesting challenge, from an academic perspective at least, would be to implement a more persistent form of caching using cookies - don&#039;t need to modify headers, but you still get content caching across browser sessions.  Probably not practical for many real life uses, but would be interesting none-the-less...</description> <content:encoded><![CDATA[<p>An interesting challenge, from an academic perspective at least, would be to implement a more persistent form of caching using cookies &#8211; don&#8217;t need to modify headers, but you still get content caching across browser sessions.  Probably not practical for many real life uses, but would be interesting none-the-less&#8230;</p> ]]></content:encoded> </item> <item><title>By: Keith</title><link>http://davidwalsh.name/cache-ajax#comment-11658</link> <dc:creator>Keith</dc:creator> <pubDate>Tue, 01 Sep 2009 22:51:28 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11658</guid> <description>That&#039;s what I said, right? :)</description> <content:encoded><![CDATA[<p>That&#8217;s what I said, right? :)</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/cache-ajax#comment-11657</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 01 Sep 2009 22:45:55 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11657</guid> <description>&lt;p&gt;@Keith:  {} is an empty object declaration in javascript.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Keith:  {} is an empty object declaration in javascript.</p> ]]></content:encoded> </item> <item><title>By: Keith</title><link>http://davidwalsh.name/cache-ajax#comment-11656</link> <dc:creator>Keith</dc:creator> <pubDate>Tue, 01 Sep 2009 22:37:43 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=3494#comment-11656</guid> <description>@Ben: it is shorthand for creating an object.var foo = []; is a shorthand method of creating an array;</description> <content:encoded><![CDATA[<p>@Ben: it is shorthand for creating an object.</p><p>var foo = []; is a shorthand method of creating an array;</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 2/7 queries in 0.010 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 02:17:18 -->
