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?
Asked
Active
Viewed 1,155 times
4
-
possible duplicate of [Can I precompile my ASP.NET MVC application?](http://stackoverflow.com/questions/336205/can-i-precompile-my-asp-net-mvc-application) – Keith Adler Feb 02 '11 at 05:01
2 Answers
2
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.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928
1

Cheeso
- 189,189
- 101
- 473
- 713
-
4ASP.NET MVC projects are web application projects so this would not apply. – Keith Adler Feb 02 '11 at 05:01