문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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 )

A would check the page load with Trace.


Yeah, Keith is right.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top