After creating the MVC web application, I got used to the fact that the first first web page that you accessed has a slow loading time, and I know why this happens, but I also notice that the loading time is slow for the initial access to each individual web page .
As an example, here are loading times for my homepage under various conditions. The home page does not make any calls to the database:
- Created project and loaded hope page (first hit of the website and first hack of the home page): 10.31 sec (expected)
- Created project, downloaded contact page (first website), and then loaded home page (first home page): 757 ms (not expected)
- All subsequent download times for the home page (2nd, 3rd, 4th, etc.): 4 ms (expected)
I reproduced the same results for all web pages, not just the home page. If you replace the "home page" with the "about us" page and the "contact page" with the "faq" page, the download time will be almost the same as above.
These numbers refer to my local environment, and if I push my project into the production environment, they fly up, and the initial load of each page is tens of seconds.
, , . , , , - , .
?