Where is cached information stored in ASP.NET stored?

I am developing a website and I want to implement caching in order to improve its performance.

If i use

<@ OutputCache Duration="20" VaryByParam="None"> 

where will my page be stored? Client side or server side? If it is stored on the client side, where is it stored?

Can I cache the main page?

+6
c # caching
source share
2 answers

If you do not specify a location, the Output Cache directive will at least store it on the server. It also allows (through the headers) intermediate proxies and clients to cache if they choose. *

To the consumer customer: a) choose whether to respect the cache header and b) where to cache. For most browsers, these are usually “Temporary Internet files” or some equivalent.

* This is more of an “assumption” that proxies or client cache, because in any case, it ultimately depends on them.

+2
source share

You can check the documentation. According to this, the default value for the cache is Any, which means:

The output cache can be located on the browser client (where the request is), on the proxy server (or any other server) participating in the request, or on the server on which the request was processed. This value corresponds to the HttpCacheability.Public enumeration. Value

As for caching the wizard, you cannot put the OutputCache directive on the main page. You can do this programmatically by enabling caching on all content pages.

+2
source share

All Articles