11
Vote

Extensibility hook for generating URL version

description

Create an extensibility hook where a custom resource versioning strategy can replace our default strategy (hash code in the v querystring parameter). This would allow for strategies that don't rely on the querystring, instead using a path segment or the resource|file name itself to hold the version moniker.

comments

Dzonny wrote Feb 4, 2013 at 8:17 PM

I'd be happy enough if I can override BundleResponse.GetContentHashCode. But if there would be a possibility to supply custom has or completelly costom query string without creating custom Bundle-derived and BundleResponse-derived classes I'd be even happier.

dmiser wrote Mar 12 at 6:29 PM

In addition, if you end up generating a URL that has -- in it, dotDefender will prevent the resource from being loaded under certain rules as it detects it as a possible SQL injection attack

phoenix20_06 wrote May 27 at 9:48 PM

This is a big issue with Firefox that unlike Chrome and IE will not cache bundles with querystring or will make unwanted requests to web server. A hook that allows to replace querystring with dynamically generated bundle name would be great!