Is it possible to cache the asp page on the server side?

Suppose you have a large complex index page showing news and more. This will not change very often. Can you somehow cache it on the server, so that the requests do not force the server to dynamically generate the entire page every time someone visits it? Or does ASP.NET do this automatically?

If so, how do you know if something has changed?

+3
source share
2 answers

Yes, you can, here is the declarative version of page caching , which will cache the page for 60 seconds:

, VaryByParam - , , , . VaryByCuston, :

VaryByCustom

, . , . , HttpApplication.GetVaryByCustomString Global.asax.

+4

Source: https://habr.com/ru/post/1746227/


All Articles