compressWebResourceHandler="false" excludes all .js files!


If I set compressWebResourceHandler="false", all javascript files are excluded from compression, not only those from WebResource.axd


RhodeHummel wrote Mar 6, 2008 at 10:32 PM

This may not be a bug. Check against the WinFxCompress.axd handler to see if the files you are wondering about are ever getting handled even when WebResourceHandler is turned on. With most of the installations of IIS and .NET that I've used .css file and .js files are not handled by ASP.NET so you will have to add a reference to the in IIS.

To do this go to your web page in the iis management console and go to the home directory tab. Then click on configure.
You will now see a list of files as well as the dll,exe that handles them. You will need to add a reference here to .js files and .css files with
the ASP ISAPI DLL assigned as the executable. If you need more instructions just let me know.

RichCrane wrote Apr 1, 2010 at 7:11 PM

JS files maybe handled by the ScriptResourceHandler and not the WebResource.axd. You can use the following...

<scriptResourceHandler enableCompression="true" enableCaching="false"/>

wrote Feb 13, 2013 at 8:48 PM