<?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: javascript cache problem, solved</title>
	<atom:link href="http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/feed/" rel="self" type="application/rss+xml" />
	<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/</link>
	<description>php, linux, ajax, javascript, kae verens</description>
	<pubDate>Wed, 07 Jan 2009 01:35:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: BoÅ¡tjan</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-101953</link>
		<dc:creator>BoÅ¡tjan</dc:creator>
		<pubDate>Sun, 31 Aug 2008 07:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-101953</guid>
		<description>If there are more files, you can use the biggest filemtime (eg. modified time of last changed file) and it's allmost the same. ;)

But ms5 has an advantage: if you upload older version of the file, md5 is the same, and already cached my users browser.</description>
		<content:encoded><![CDATA[<p>If there are more files, you can use the biggest filemtime (eg. modified time of last changed file) and it&#8217;s allmost the same. <img src='http://verens.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>But ms5 has an advantage: if you upload older version of the file, md5 is the same, and already cached my users browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-101588</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Wed, 27 Aug 2008 07:53:47 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-101588</guid>
		<description>BoÅ¡tjan, that's a good solution if there is only one javascript file (the first case described above), but if there are multiple, then you need a unique string which will cover them all (the second case).

But yeah - I think in the first case, mtime is sufficient. You're right.</description>
		<content:encoded><![CDATA[<p>BoÅ¡tjan, that&#8217;s a good solution if there is only one javascript file (the first case described above), but if there are multiple, then you need a unique string which will cover them all (the second case).</p>
<p>But yeah - I think in the first case, mtime is sufficient. You&#8217;re right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BoÅ¡tjan</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-101586</link>
		<dc:creator>BoÅ¡tjan</dc:creator>
		<pubDate>Wed, 27 Aug 2008 07:37:56 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-101586</guid>
		<description>You don't need to calculate md5, you can simply use filemtime($file_url) instead - it's much faster!</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need to calculate md5, you can simply use filemtime($file_url) instead - it&#8217;s much faster!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kae Verens</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-95898</link>
		<dc:creator>Kae Verens</dc:creator>
		<pubDate>Mon, 30 Jun 2008 08:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-95898</guid>
		<description>Domi, true. But &lt;a href="http://verens.com/archives/2005/08/25/always-end-a-javascript-statement-with-a-semi-colon/" rel="nofollow"&gt;also true of lines within the javascript&lt;/a&gt;. there's nothing I can do about the latter without much work. and if the writer tends to finish the lines in the middle of the file with semi-colons, then my guess is that the same author would finish the last line of the script with a semi-colon.</description>
		<content:encoded><![CDATA[<p>Domi, true. But <a href="http://verens.com/archives/2005/08/25/always-end-a-javascript-statement-with-a-semi-colon/" rel="nofollow">also true of lines within the javascript</a>. there&#8217;s nothing I can do about the latter without much work. and if the writer tends to finish the lines in the middle of the file with semi-colons, then my guess is that the same author would finish the last line of the script with a semi-colon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domi</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-95477</link>
		<dc:creator>Domi</dc:creator>
		<pubDate>Thu, 26 Jun 2008 14:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-95477</guid>
		<description>V. cool.

A possible refinement (depending on your js sources) is to add a semicolon on the end of each javascript file contents, for the case where the original doesn't have it (like if it's packed) and it runs into the next one.

Cheers</description>
		<content:encoded><![CDATA[<p>V. cool.</p>
<p>A possible refinement (depending on your js sources) is to add a semicolon on the end of each javascript file contents, for the case where the original doesn&#8217;t have it (like if it&#8217;s packed) and it runs into the next one.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: klog &#187; Blog Archive &#187; efficient JS minification using PHP</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-92003</link>
		<dc:creator>klog &#187; Blog Archive &#187; efficient JS minification using PHP</dc:creator>
		<pubDate>Tue, 20 May 2008 21:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-92003</guid>
		<description>[...] solution is to save the cached file in a file named using an MD5 of the last modified datetimes (genius idea - I&#8217;d love to shake the author&#8217;s hand). That way the cache will always be [...]</description>
		<content:encoded><![CDATA[<p>[...] solution is to save the cached file in a file named using an MD5 of the last modified datetimes (genius idea - I&#8217;d love to shake the author&#8217;s hand). That way the cache will always be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikul Gohil</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-90603</link>
		<dc:creator>Mikul Gohil</dc:creator>
		<pubDate>Wed, 07 May 2008 19:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-90603</guid>
		<description>sorry for that i have removed from my site</description>
		<content:encoded><![CDATA[<p>sorry for that i have removed from my site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikul Gohil</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-90601</link>
		<dc:creator>Mikul Gohil</dc:creator>
		<pubDate>Wed, 07 May 2008 19:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-90601</guid>
		<description>ok man i will just link  to your post sorry for that</description>
		<content:encoded><![CDATA[<p>ok man i will just link  to your post sorry for that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikul Gohil</title>
		<link>http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/comment-page-1/#comment-90599</link>
		<dc:creator>Mikul Gohil</dc:creator>
		<pubDate>Wed, 07 May 2008 18:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://verens.com/archives/2008/04/09/javascript-cache-problem-solved/#comment-90599</guid>
		<description>good i got what i wanted</description>
		<content:encoded><![CDATA[<p>good i got what i wanted</p>
]]></content:encoded>
	</item>
</channel>
</rss>
