Reputation: 31
Does enabling preload for an ASP.NET website under IIS (7.5 and above) mean the site will get precompiled (via aspnet_compiler) once IIS starts or these considered two separate things?
Upvotes: 1
Views: 298
Reputation: 5877
These are two different things, but they are related. PreLoad simulates a user request after the website is made available by IIS, and it initializes it for faster response for subsequent requests. Now, if the website is already compiled, it might not have a big performance boost, but if the website is not yet compiled, then it will compile it using aspnet_compiler.exe
.
This makes the website load considerably faster for the first user request, so they don't encounter initialization delay.
Upvotes: 1