<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <generator>http://textpattern.com/</generator>
 <title>Textpattern Tips – Force client refresh CSS at time intervals</title>
 <description>Force client refresh CSS at time intervals - comments</description>
 <link>https://textpattern.tips/force-client-refresh-css-at-time-intervals</link>
 <atom:link href="https://textpattern.tips/force-client-refresh-css-at-time-intervals?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Wed, 11 Apr 12 19:43:20 +0000</pubDate>

 <item>
     <title>Comment on Force client refresh CSS at time intervals by trenc</title>
     <link><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001084" id="c001084">1</a></link>
     <guid><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001084" id="c001084">1</a></guid>
     <pubDate>Sat, 07 Apr 12 07:54:02 +0000</pubDate>
     <description><![CDATA[<p>This breaks the caching. You don&#8217;t really want to load the css every week anew. </p><p>I would hardcode the css-date variable with a version string or date and update this manually after a modifaction of the css.</p>]]></description>
     <content:encoded><![CDATA[<p>This breaks the caching. You don&#8217;t really want to load the css every week anew. </p><p>I would hardcode the css-date variable with a version string or date and update this manually after a modifaction of the css.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.yablo.de/">trenc</a></dc:creator>
 
</item>
<item>
     <title>Comment on Force client refresh CSS at time intervals by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001085" id="c001085">1</a></link>
     <guid><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001085" id="c001085">1</a></guid>
     <pubDate>Sun, 08 Apr 12 13:53:34 +0000</pubDate>
     <description><![CDATA[<p>Thanks Tommy aka trenc &#8211; care to post a code snippet with your suggestion?</p>]]></description>
     <content:encoded><![CDATA[<p>Thanks Tommy aka trenc &#8211; care to post a code snippet with your suggestion?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Force client refresh CSS at time intervals by trenc</title>
     <link><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001086" id="c001086">1</a></link>
     <guid><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001086" id="c001086">1</a></guid>
     <pubDate>Tue, 10 Apr 12 07:56:31 +0000</pubDate>
     <description><![CDATA[<p>Hi Jonathan,</p><p>shure.<br>If I stay with the example above, I would do something. Btw, there is a custom_field tag in the post. I think this should be a variable tag.</p><pre><code>&lt;txp:variable name="css-date"&gt;?v=20120410&lt;/txp:variable&gt;
  &lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;
&lt;!-- Fix for the Redmond Ass Hats --&gt;
  &lt;!--[if IE 6]&gt;&lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css name="IE6" format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;&lt;![endif]--&gt;
  &lt;!--[if IE 7]&gt;&lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css name="IE7" format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;&lt;![endif]--&gt;
  &lt;!--[if IE 8]&gt;&lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css name="IE8" format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;&lt;![endif]--&gt;
</code></pre><p>Now, the css file is loaded one time and then is cached. If I modify the css file then I have to change the <code>&lt;txp:variable name="css-date" /&gt;</code> to the current date. Then the browsers will load the css file anew and will cache it until you change the css-date variable again.</p>]]></description>
     <content:encoded><![CDATA[<p>Hi Jonathan,</p><p>shure.<br>If I stay with the example above, I would do something. Btw, there is a custom_field tag in the post. I think this should be a variable tag.</p><pre><code>&lt;txp:variable name="css-date"&gt;?v=20120410&lt;/txp:variable&gt;
  &lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;
&lt;!-- Fix for the Redmond Ass Hats --&gt;
  &lt;!--[if IE 6]&gt;&lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css name="IE6" format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;&lt;![endif]--&gt;
  &lt;!--[if IE 7]&gt;&lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css name="IE7" format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;&lt;![endif]--&gt;
  &lt;!--[if IE 8]&gt;&lt;link rel="stylesheet" type="text/css" media="screen" href="&lt;txp:rvm_css name="IE8" format="url"/&gt;&lt;txp:variable name="css-date"/&gt;" /&gt;&lt;![endif]--&gt;
</code></pre><p>Now, the css file is loaded one time and then is cached. If I modify the css file then I have to change the <code>&lt;txp:variable name="css-date" /&gt;</code> to the current date. Then the browsers will load the css file anew and will cache it until you change the css-date variable again.</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.yablo.de/">trenc</a></dc:creator>
 
</item>
<item>
     <title>Comment on Force client refresh CSS at time intervals by Jonathan Stubbs</title>
     <link><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001087" id="c001087">1</a></link>
     <guid><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001087" id="c001087">1</a></guid>
     <pubDate>Tue, 10 Apr 12 13:19:04 +0000</pubDate>
     <description><![CDATA[<p>Thanks Tommy! I have amended the post above &#8211; thanks for spotting the error and for the code example. Looks good!</p>]]></description>
     <content:encoded><![CDATA[<p>Thanks Tommy! I have amended the post above &#8211; thanks for spotting the error and for the code example. Looks good!</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonathanstubbs.com">Jonathan Stubbs</a></dc:creator>
 
</item>
<item>
     <title>Comment on Force client refresh CSS at time intervals by JanDW</title>
     <link><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001088" id="c001088">1</a></link>
     <guid><a href="https://textpattern.tips/force-client-refresh-css-at-time-intervals#c001088" id="c001088">1</a></guid>
     <pubDate>Wed, 11 Apr 12 19:43:20 +0000</pubDate>
     <description><![CDATA[<p><a href="http://forum.textpattern.com/viewtopic.php?id=35059" rel="nofollow">Here is a snippet of php by Bloke</a>  that comes in handy for making sure the cache doesn&#8217;t spoil the party:</p>]]></description>
     <content:encoded><![CDATA[<p><a href="http://forum.textpattern.com/viewtopic.php?id=35059" rel="nofollow">Here is a snippet of php by Bloke</a>  that comes in handy for making sure the cache doesn&#8217;t spoil the party:</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://www.jandewilde.com">JanDW</a></dc:creator>
 
</item>

</channel>
</rss>