Reputation: 21178
When I first request pages from my ASP.NET MVC 3 website it appears to suffer a delay, but on subsequent requests it is instantaneous. I have no caching on pages so the second request is pulled from the server. Is there any way to preload the whole app?
Upvotes: 4
Views: 1160
Reputation: 1038710
There is a new Auto-Start feature in IIS 7.5 and ASP.NET 4.0 which allows you to load all application sin memory when the server starts thus avoiding the delay. For all previous versions you could schedule an automated request when the server starts in order to load the application in memory so that subsequent requests be faster.
Upvotes: 2