Can you pre-cache ASP.NET Bundles?
问题 Every time I deploy an MVC web application my server has to re-cache all js and css bundles. Because of this it can take several seconds for the first view to render after deploying. Is there a way to pre-cache bundles? After all, the files are static at compile time. 回答1: Solution To fix we replaced the default memory cache with caching that persisted beyond the App Pool life. To do this we inherited from ScriptBundle and overrode CacheLookup() and UpdateCache() . /// <summary> /// override