<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 13 Jun 2026 16:34:24 +0000</lastBuildDate>
    <item>
      <title>(CSS) Force server to load latest CSS file - jadedbat</title>
      <link>https://snipplr.com/view/12919/force-server-to-load-latest-css-file</link>
      <description>&lt;p&gt;This is sometimes not the best solution to a server caching your css files.  But if you want to force a stubborn server to serve the most recent css file to the browser this seems to work.  Could slow things down a touch, but for small css files not really noticeable. &#13;
&#13;
Just change the var css to match the path to your css file, and then offer a non jscript version pointing to the same file.&#13;
&#13;
Essentially by adding the query to the end of the css file the server thinks it needs to load it.  I used date and getTime to create a number combo and tagged it to the end.&#13;
&#13;
Use: put the following code into your &lt;head&gt; right where your normal &lt;link&gt; tag would go to point to your css file.&lt;/p&gt;</description>
      <pubDate>Mon, 09 Mar 2009 02:30:12 UTC</pubDate>
      <guid>https://snipplr.com/view/12919/force-server-to-load-latest-css-file</guid>
    </item>
  </channel>
</rss>
