问题
My websites (HTML and ASP.NET MVC) are hosted on a IIS 7.5 VPS
their first load is always too slow, even requested from localhost, then navigation speed between the web sites pages is good.
please what to do to increase first load speed?
回答1:
U can always set the Idle Time-out of the application pool to 0 which is default 20 minutes. It's under advanced settings. That way the first load won't be often.
回答2:
First load tends to require a compilation of webpages (aspx or razor). You can precompile these. Also, if you have a database repository, often this gets initialized on first load, and depending on whats been done there, this also can be slow. ( but most often can be optimized )
回答3:
A would check the page load with Trace.
Yeah, Keith is right.
来源:https://stackoverflow.com/questions/9456994/website-first-load-too-slow