<?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: Adding version to theme CSS file</title> <atom:link href="http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/feed" rel="self" type="application/rss+xml" /><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file</link> <description>A blog by Prelovac Media CEO Vladimir Prelovac</description> <lastBuildDate>Tue, 14 Feb 2012 08:37:58 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Ben Landen</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-23593</link> <dc:creator>Ben Landen</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-23593</guid> <description>this tip help me to do my work easy..thank you..keep posting</description> <content:encoded><![CDATA[<p>this tip help me to do my work easy..thank you..keep posting</p> ]]></content:encoded> </item> <item><title>By: iCosmin</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-21698</link> <dc:creator>iCosmin</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-21698</guid> <description>Ok, so it did screw it up...I&#039;ve pasted the code to TinyPaste: http://tinypaste.com/8f49b4Cheers,
Cosmin.</description> <content:encoded><![CDATA[<p>Ok, so it did screw it up...</p><p>I've pasted the code to TinyPaste: <a
href="http://tinypaste.com/8f49b4" rel="nofollow">http://tinypaste.com/8f49b4</a></p><p>Cheers,<br
/> Cosmin.</p> ]]></content:encoded> </item> <item><title>By: iCosmin</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-21697</link> <dc:creator>iCosmin</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-21697</guid> <description>I&#039;ve had issues in Firefox on a client site I was building.Looks like Firefox 3.x has some caching problems and that resulted in it not always being able to load my style.css.So I searched and found your solution, but as you say, it only works when the CSS changes.
My CSS is not changing but stupid Firefox still can&#039;t load it after a few browsed pages.My solution, inspired by yours, was to use PHP&#039;s uniqid() function in order to append a unique number after the &#039;?&#039; at the end of the file URI.Here&#039;s how (please edit in case WordPress screws up the code)&lt;pre&gt;&lt;code&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;&quot;  /&gt;Hope this helps others that have the same issue.I know it&#039;s not very elegant, since it always reloads your CSS, but if you have it minified for the live site, it&#039;s not a big deal (ok, true, it depends on how much traffic you get, but still...)Thanks, Vladimir!
&lt;/code&gt;&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>I've had issues in Firefox on a client site I was building.</p><p>Looks like Firefox 3.x has some caching problems and that resulted in it not always being able to load my style.css.</p><p>So I searched and found your solution, but as you say, it only works when the CSS changes.<br
/> My CSS is not changing but stupid Firefox still can't load it after a few browsed pages.</p><p>My solution, inspired by yours, was to use PHP's uniqid() function in order to append a unique number after the '?' at the end of the file URI.</p><p>Here's how (please edit in case WordPress screws up the code)</p><pre><code>
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;"  /&gt;

Hope this helps others that have the same issue.

I know it's not very elegant, since it always reloads your CSS, but if you have it minified for the live site, it's not a big deal (ok, true, it depends on how much traffic you get, but still...)

Thanks, Vladimir!
</code></pre>]]></content:encoded> </item> <item><title>By: Chris Peacock</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-17841</link> <dc:creator>Chris Peacock</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-17841</guid> <description>My mistake, I thought it just used today&#039;s date, but I understand it uses the files modified date (is that right, sorry I&#039;m not familiar with filemtime function, guess I should google it).  Definitely makes more sense to me now.  Great idea!</description> <content:encoded><![CDATA[<p>My mistake, I thought it just used today's date, but I understand it uses the files modified date (is that right, sorry I'm not familiar with filemtime function, guess I should google it).  Definitely makes more sense to me now.  Great idea!</p> ]]></content:encoded> </item> <item><title>By: Vladimir</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-17835</link> <dc:creator>Vladimir</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-17835</guid> <description>Every visit will not require a re-download, only when the CSS is changed.</description> <content:encoded><![CDATA[<p>Every visit will not require a re-download, only when the CSS is changed.</p> ]]></content:encoded> </item> <item><title>By: Ash Goodman</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-17779</link> <dc:creator>Ash Goodman</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-17779</guid> <description>Excellent! I am implementing it on all of my client websites going forward. Thank you for another excellent tip Vladimir.</description> <content:encoded><![CDATA[<p>Excellent! I am implementing it on all of my client websites going forward. Thank you for another excellent tip Vladimir.</p> ]]></content:encoded> </item> <item><title>By: Chris Peacock</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-17775</link> <dc:creator>Chris Peacock</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-17775</guid> <description>Awesome trick!  Nice way to keep from Ctrl-refreshing all the time.  But I don&#039;t think it is a good idea to keep it that way.  It is kind of like a debugging feature, you only want to use it when your doing lots of trial and error testing.  Otherwise, every visit requires visitors to re-download the stylesheet, which increase the page load time a little bit.  What about graphics?  Should we do the same when we are fine tuning graphic designs, forcing visitors to re-download graphics on every page load?  I know it&#039;s absurd, but proves my point I think.  But still, awesome trick!</description> <content:encoded><![CDATA[<p>Awesome trick!  Nice way to keep from Ctrl-refreshing all the time.  But I don't think it is a good idea to keep it that way.  It is kind of like a debugging feature, you only want to use it when your doing lots of trial and error testing.  Otherwise, every visit requires visitors to re-download the stylesheet, which increase the page load time a little bit.  What about graphics?  Should we do the same when we are fine tuning graphic designs, forcing visitors to re-download graphics on every page load?  I know it's absurd, but proves my point I think.  But still, awesome trick!</p> ]]></content:encoded> </item> <item><title>By: ipadku</title><link>http://www.prelovac.com/vladimir/adding-version-to-theme-css-file/comment-page-1#comment-17771</link> <dc:creator>ipadku</dc:creator> <pubDate></pubDate> <guid
isPermaLink="false">http://www.prelovac.com/vladimir/?p=1288#comment-17771</guid> <description>awesome trick master..its so can include author blog :)</description> <content:encoded><![CDATA[<p>awesome trick master..</p><p>its so can include author blog :)</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.prelovac.com @ 2012-02-14 11:39:59 by W3 Total Cache -->
