Since you specifically want to include only javascript files, make the following change in the ~/Views/web.config
: add the "JavascriptViewHandler" section.
<system.webServer> <handlers> <add name="JavascriptViewHandler" path="*.js" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" /> <remove name="BlockViewHandler"/> <add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> </handlers> </system.webServer>
This will save all current file locks other than javascript.
source share