title: Resource (JS, CSS) compression, minification, and versioning in ASP.NET
body: <p>We’re coming to a big release in a web project I work on, and I’m starting to think more and more about javascript/css performance and versioning.  I’ve got a couple high level ideas so far:</p>
  
  <ol>
  <li>Write (or customize) an http handler to do this for me.  This would obviously have to handle caching as well to justify the on the fly IO that would occur.</li>
  <li>Add these steps into a custom msbuild script that would be ran for deployment only.</li>
  </ol>
  
  <p>I’m also looking at automatically generating config files for each of the servers I deploy to, which lends itself to the second idea.  The major advantage I see with the first idea is that I could dynamically handle versioning (at least that’s what one of my links at the bottom says, I’ve yet to convince myself that this would actually work).  </p>
  
  <p>Anyway, I’m curious if any of these problems have already been solved.  I’d love any feedback.  Thanks!</p>
  
  <p>Here are some resources that I've been looking at so far:</p>
  
  <p><a href="http://madskristensen.net/post/Combine-multiple-stylesheets-at-runtime.aspx" rel="nofollow noreferrer">http://madskristensen.net/post/Combine-multiple-stylesheets-at-runtime.aspx</a>
  <a href="http://madskristensen.net/post/Remove-whitespace-from-stylesheets-and-JavaScript-files.aspx" rel="nofollow noreferrer">http://madskristensen.net/post/Remove-whitespace-from-stylesheets-and-JavaScript-files.aspx</a>
  <a href="http://www.west-wind.com/WebLog/posts/413878.aspx" rel="nofollow noreferrer">http://www.west-wind.com/WebLog/posts/413878.aspx</a>
  <a href="http://svn.offwhite.net/trac/SmallSharpTools.Packer/wiki" rel="nofollow noreferrer">http://svn.offwhite.net/trac/SmallSharpTools.Packer/wiki</a> </p>