<?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: CSS Caching Hack</title>
	<atom:link href="http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/</link>
	<description>Graphic Artist, Technophile, Web Librarian, Embarrassingly cute spelling mistakes.</description>
	<lastBuildDate>Mon, 06 Feb 2012 16:41:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Evahn</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-50069</link>
		<dc:creator>Evahn</dc:creator>
		<pubDate>Thu, 05 Jan 2012 06:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-50069</guid>
		<description>Oh man - thanks for this!
Was tearing my hair out with IE9 seeming to cache the CSS no matter what I did.
Worked straight up just adding ?Ver=1 after the css file call :)</description>
		<content:encoded><![CDATA[<p>Oh man &#8211; thanks for this!<br />
Was tearing my hair out with IE9 seeming to cache the CSS no matter what I did.<br />
Worked straight up just adding ?Ver=1 after the css file call :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fahid</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-50056</link>
		<dc:creator>Fahid</dc:creator>
		<pubDate>Mon, 05 Dec 2011 13:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-50056</guid>
		<description>Hey nice tip...!
Thanks a ton ;)</description>
		<content:encoded><![CDATA[<p>Hey nice tip&#8230;!<br />
Thanks a ton ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nerd Guy</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-50020</link>
		<dc:creator>Nerd Guy</dc:creator>
		<pubDate>Tue, 20 Sep 2011 20:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-50020</guid>
		<description>Why it is not used is because HTTP GET with a parm , i.e ?, is a non-cacheable item and so this works because it never get it from the cache which is not a good thing. If you do this you have to make sure the web server is marking the content as cacheable.</description>
		<content:encoded><![CDATA[<p>Why it is not used is because HTTP GET with a parm , i.e ?, is a non-cacheable item and so this works because it never get it from the cache which is not a good thing. If you do this you have to make sure the web server is marking the content as cacheable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyril</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-50018</link>
		<dc:creator>Cyril</dc:creator>
		<pubDate>Tue, 13 Sep 2011 16:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-50018</guid>
		<description>This is extremely helpful, You are an excessively professional blog writer. I have registered your feed and turn up for in search of even more of your great posting. Also, I&#039;ve got shared your website within my social networks!</description>
		<content:encoded><![CDATA[<p>This is extremely helpful, You are an excessively professional blog writer. I have registered your feed and turn up for in search of even more of your great posting. Also, I&#8217;ve got shared your website within my social networks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nandun</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-50015</link>
		<dc:creator>Nandun</dc:creator>
		<pubDate>Fri, 02 Sep 2011 10:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-50015</guid>
		<description>Excellent tip. and its not even a hack if you really think about it.</description>
		<content:encoded><![CDATA[<p>Excellent tip. and its not even a hack if you really think about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: web design liverpool</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-50010</link>
		<dc:creator>web design liverpool</dc:creator>
		<pubDate>Sat, 20 Aug 2011 14:37:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-50010</guid>
		<description>great tips and nice information you have shared, i like it.</description>
		<content:encoded><![CDATA[<p>great tips and nice information you have shared, i like it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mayka</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49990</link>
		<dc:creator>mayka</dc:creator>
		<pubDate>Sat, 09 Jul 2011 08:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49990</guid>
		<description>amazing..... thanks</description>
		<content:encoded><![CDATA[<p>amazing&#8230;.. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mayka</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49989</link>
		<dc:creator>mayka</dc:creator>
		<pubDate>Sat, 09 Jul 2011 08:25:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49989</guid>
		<description>amazing..... thanks for tips</description>
		<content:encoded><![CDATA[<p>amazing&#8230;.. thanks for tips</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerelt Od</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49981</link>
		<dc:creator>Gerelt Od</dc:creator>
		<pubDate>Wed, 25 May 2011 01:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49981</guid>
		<description>I have seen many css files included with ?version=number, i always just wondered. Almost thought css gets some GET values :P Thanks for informations, now all doubts gone.</description>
		<content:encoded><![CDATA[<p>I have seen many css files included with ?version=number, i always just wondered. Almost thought css gets some GET values :P Thanks for informations, now all doubts gone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stiri de ultima ora</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49979</link>
		<dc:creator>stiri de ultima ora</dc:creator>
		<pubDate>Sun, 27 Mar 2011 18:08:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49979</guid>
		<description>hell yeah this is great</description>
		<content:encoded><![CDATA[<p>hell yeah this is great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Developer</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49976</link>
		<dc:creator>Web Developer</dc:creator>
		<pubDate>Sun, 13 Mar 2011 10:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49976</guid>
		<description>Is it just me or does internet explorer completely IGNORE css?</description>
		<content:encoded><![CDATA[<p>Is it just me or does internet explorer completely IGNORE css?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seferm</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49939</link>
		<dc:creator>Seferm</dc:creator>
		<pubDate>Mon, 18 Oct 2010 17:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49939</guid>
		<description>great tips. keep it up</description>
		<content:encoded><![CDATA[<p>great tips. keep it up</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Costas Tryfonos</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49937</link>
		<dc:creator>Costas Tryfonos</dc:creator>
		<pubDate>Thu, 14 Oct 2010 16:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49937</guid>
		<description>I agree with William S. PHP is the way to go</description>
		<content:encoded><![CDATA[<p>I agree with William S. PHP is the way to go</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tropicalm</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49921</link>
		<dc:creator>tropicalm</dc:creator>
		<pubDate>Wed, 18 Aug 2010 13:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49921</guid>
		<description>just realise you can simplify the code above by just going:

printf(&quot;@import \&quot;%s/css/main.css?version=%d\&quot;;\n&quot;, BASE_URL, filemtime(BASE_URL . &#039;/css/main.css&#039;));</description>
		<content:encoded><![CDATA[<p>just realise you can simplify the code above by just going:</p>
<p>printf(&#8220;@import \&#8221;%s/css/main.css?version=%d\&#8221;;\n&#8221;, BASE_URL, filemtime(BASE_URL . &#8216;/css/main.css&#8217;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tropicalm</title>
		<link>http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/comment-page-3/#comment-49920</link>
		<dc:creator>tropicalm</dc:creator>
		<pubDate>Wed, 18 Aug 2010 13:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/#comment-49920</guid>
		<description>Good trick. You can even use it inside a , with the @import statement.

e.g. 
printf(&quot;@import \&quot;%s/css/main.css?version=%d\&quot;;\n&quot;, BASE_URL, getCSSLastUpdate());

Where getCSSLastUpdate is:

function getCSSLastUpdate() {
	if (defined(&#039;CSS_PATH&#039;) &amp;&amp; file_exists(CSS_PATH)) return filemtime(CSS_PATH);
	return 0;
}

(add a CSS_PATH define to your env file so that it points to whatever CSS matters).</description>
		<content:encoded><![CDATA[<p>Good trick. You can even use it inside a , with the @import statement.</p>
<p>e.g.<br />
printf(&#8220;@import \&#8221;%s/css/main.css?version=%d\&#8221;;\n&#8221;, BASE_URL, getCSSLastUpdate());</p>
<p>Where getCSSLastUpdate is:</p>
<p>function getCSSLastUpdate() {<br />
	if (defined(&#8216;CSS_PATH&#8217;) &amp;&amp; file_exists(CSS_PATH)) return filemtime(CSS_PATH);<br />
	return 0;<br />
}</p>
<p>(add a CSS_PATH define to your env file so that it points to whatever CSS matters).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

