Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 25th, 2012  |  syntax: XML  |  size: 0.67 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!--
  2. ----------------------------------------------------------------------
  3. Built-in filename-based cache busting
  4. ----------------------------------------------------------------------
  5.  
  6. If you're not using the build script to manage your filename version revving,
  7. you might want to consider enabling this, which will route requests for
  8. /css/style.v20110203.css to /css/style.css
  9.  
  10. To understand why this is important and a better idea than all.css?v1231,
  11. read: github.com/h5bp/html5-boilerplate/wiki/Version-Control-with-Cachebusting
  12. -->
  13.  
  14. <rule name="Cachebusting">
  15.   <match url="^(.+)\.\d+(\.(js|css|png|jpg|gif)$)" />
  16.   <action type="Rewrite" url="{R:1}{R:2}" />
  17. </rule>