First off, we've been using SquishIt for some time now and it works really well and is really stable, it hasn't failed us a single time. Great work!!
That said, I have an idea. Maybe someone already has worked this out...
When you go to release mode you have two options:
1) Render the file with fingerprint in filename, eg main_8656adf.css
2) Render the fingerprint as querystring, eg main.css?v-87654adeh
Both has advantages, and disadvantages. First one is good according to google page speed, but renders LOTS of files. Second one only renders a single file, but will fail in some caching proxys according to Page speed.
Then I stumbled over Mads Kristensens blog post about cache busting and URL Rewrite module in iis, http://madskristensen.net/post/Cache-busting-in-ASPNET.aspx
Would it be possible to combine SquishIt with URL Rewite in some way? So the url sent to the browser is /ui/css/v-7865489/main.css but the v-7865489 folder is just a virtual directory, the file is really located in /ui/css/ folder.
Is it possible?
Thanks again for a great library!
<rewrite><rules><rule name="squishit"><match url="([\S]+)(/r-[\w]+/)([\S]+)" /><action type="Rewrite" url="{R:1}/{R:3}" /></rule></rules></rewrite>