Search code examples
asp.netasp.net-mvccachingoutputcachecache-control

Does the ASP.NET OutputCache directive actually cache or just set some Response properties?


When someone uses the OutputCache directive in an ASP.NET WebForms/MVC application, does it actually do any caching server-side, like using the Cache or does it only setup some properties in the Response object like the Cache-Control property?

Cheers :)


Solution

  • Output Caching caches the entire rendered markup of an ASP.NET web page or User Control for a specified duration.