<?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: Caching scripts in HTML5 Database</title>
	<atom:link href="http://ajaxian.com/archives/caching-scripts-in-html5-database/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/caching-scripts-in-html5-database</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: ujuxiun</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271551</link>
		<dc:creator>ujuxiun</dc:creator>
		<pubDate>Tue, 24 Feb 2009 06:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271551</guid>
		<description>this general technique can speed page loading by 30% or better esp for mobile devices. like 343max mentioned the If-Modified-Since/Last-Modified headers can be used in your xmlhttprequest (set/getResponseHeader) if/when you have them available instead of tinkering with versioning. that way you can delay or ignore 304/not-modified responses keeping persistent assets current in the background.</description>
		<content:encoded><![CDATA[<p>this general technique can speed page loading by 30% or better esp for mobile devices. like 343max mentioned the If-Modified-Since/Last-Modified headers can be used in your xmlhttprequest (set/getResponseHeader) if/when you have them available instead of tinkering with versioning. that way you can delay or ignore 304/not-modified responses keeping persistent assets current in the background.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sujith84</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271525</link>
		<dc:creator>sujith84</dc:creator>
		<pubDate>Sat, 21 Feb 2009 04:48:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271525</guid>
		<description>great tip. although i will never by using it, it is still a very good method.</description>
		<content:encoded><![CDATA[<p>great tip. although i will never by using it, it is still a very good method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 3n</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271515</link>
		<dc:creator>3n</dc:creator>
		<pubDate>Fri, 20 Feb 2009 18:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271515</guid>
		<description>343max - that&#039;s pretty slick, well done. I didn&#039;t have access to the mod dates since I&#039;m doing it entirely in JS (no php 4 me), so I had to use version numbers :(</description>
		<content:encoded><![CDATA[<p>343max &#8211; that&#8217;s pretty slick, well done. I didn&#8217;t have access to the mod dates since I&#8217;m doing it entirely in JS (no php 4 me), so I had to use version numbers :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 3n</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271514</link>
		<dc:creator>3n</dc:creator>
		<pubDate>Fri, 20 Feb 2009 18:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271514</guid>
		<description>The reason for using this over expire headers is that iPhone currently wont cache any file over 25K (e.g. most JS libraries). Even if it were to cache large files, it has pretty aggressive cache clearing policies, including clearing the whole cache when it is hard reset. 

The reason for using eval() over script tags is that I couldn&#039;t figure out a way to sanitize the &#039;&#039; chars in the code properly in the amount of time I spent on this script. Without the sanitization, inserting the script&#039;s code into script tags caused some nasty bugs. I still have a branch in my git repo that uses the script tags, though - if someone knows how to sanitize the code please message me on github. 

I&#039;m not sure why anyone would care about security issues in this case, but I guess that&#039;s just all some people see..</description>
		<content:encoded><![CDATA[<p>The reason for using this over expire headers is that iPhone currently wont cache any file over 25K (e.g. most JS libraries). Even if it were to cache large files, it has pretty aggressive cache clearing policies, including clearing the whole cache when it is hard reset. </p>
<p>The reason for using eval() over script tags is that I couldn&#8217;t figure out a way to sanitize the &#8221; chars in the code properly in the amount of time I spent on this script. Without the sanitization, inserting the script&#8217;s code into script tags caused some nasty bugs. I still have a branch in my git repo that uses the script tags, though &#8211; if someone knows how to sanitize the code please message me on github. </p>
<p>I&#8217;m not sure why anyone would care about security issues in this case, but I guess that&#8217;s just all some people see..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karnius</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271513</link>
		<dc:creator>karnius</dc:creator>
		<pubDate>Fri, 20 Feb 2009 18:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271513</guid>
		<description>Well the html spec say&#039;s no one but the domain owner can change a html5 database as for security, I really like the idea anyway..</description>
		<content:encoded><![CDATA[<p>Well the html spec say&#8217;s no one but the domain owner can change a html5 database as for security, I really like the idea anyway..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 343max</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271504</link>
		<dc:creator>343max</dc:creator>
		<pubDate>Fri, 20 Feb 2009 15:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271504</guid>
		<description>I did something quite similar, but with Support for JS, CSS (with images).

Uses modification dates and not version numbers to make things easier to deploy.

Works in Webkit only (but on the iPhone)

http://github.com/343max/dbfs/tree/master

Real-life example: http://i.edween.net (works only in Webkit Browsers)</description>
		<content:encoded><![CDATA[<p>I did something quite similar, but with Support for JS, CSS (with images).</p>
<p>Uses modification dates and not version numbers to make things easier to deploy.</p>
<p>Works in Webkit only (but on the iPhone)</p>
<p><a href="http://github.com/343max/dbfs/tree/master" rel="nofollow">http://github.com/343max/dbfs/tree/master</a></p>
<p>Real-life example: <a href="http://i.edween.net" rel="nofollow">http://i.edween.net</a> (works only in Webkit Browsers)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeromeetienne</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271503</link>
		<dc:creator>jeromeetienne</dc:creator>
		<pubDate>Fri, 20 Feb 2009 14:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271503</guid>
		<description>I did something similar with googe gear for symfony (php framework). you can find it at http://www.symfony-project.org/plugins/sfGoogleGearCachePlugin</description>
		<content:encoded><![CDATA[<p>I did something similar with googe gear for symfony (php framework). you can find it at <a href="http://www.symfony-project.org/plugins/sfGoogleGearCachePlugin" rel="nofollow">http://www.symfony-project.org/plugins/sfGoogleGearCachePlugin</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KitSunde</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271501</link>
		<dc:creator>KitSunde</dc:creator>
		<pubDate>Fri, 20 Feb 2009 13:14:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271501</guid>
		<description>Well http headers only works on a per-url basis while say this would work by allowing say a library to cache itself globally. Although I&#039;m not sure that&#039;s even reasonable considering the security implications of allowing unknown third party users too cache something for you.

I suppose this would also be a workaround if you are on a badly configured server who&#039;s backend you&#039;ve got no control over. Although its so easy to switch hosting these days, so I doubt that&#039;s a real issue.</description>
		<content:encoded><![CDATA[<p>Well http headers only works on a per-url basis while say this would work by allowing say a library to cache itself globally. Although I&#8217;m not sure that&#8217;s even reasonable considering the security implications of allowing unknown third party users too cache something for you.</p>
<p>I suppose this would also be a workaround if you are on a badly configured server who&#8217;s backend you&#8217;ve got no control over. Although its so easy to switch hosting these days, so I doubt that&#8217;s a real issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MorganRoderick</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271500</link>
		<dc:creator>MorganRoderick</dc:creator>
		<pubDate>Fri, 20 Feb 2009 12:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271500</guid>
		<description>While it certainly is an interesting idea as a proof-of-concept, I fail to see the real-world scenarios, where this would be preferable to using cache expiration headers and versioning using url suffixes.</description>
		<content:encoded><![CDATA[<p>While it certainly is an interesting idea as a proof-of-concept, I fail to see the real-world scenarios, where this would be preferable to using cache expiration headers and versioning using url suffixes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: V1</title>
		<link>http://ajaxian.com/archives/caching-scripts-in-html5-database/comment-page-1#comment-271499</link>
		<dc:creator>V1</dc:creator>
		<pubDate>Fri, 20 Feb 2009 12:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=6049#comment-271499</guid>
		<description>Seems like a nice idea, but ill rather use expire headers..

instead of eval, why don&#039;t you just create script tags, add the code as + text and append it to the head?</description>
		<content:encoded><![CDATA[<p>Seems like a nice idea, but ill rather use expire headers..</p>
<p>instead of eval, why don&#8217;t you just create script tags, add the code as + text and append it to the head?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

