{"id":61,"date":"2014-05-23T05:56:00","date_gmt":"2014-05-23T04:56:00","guid":{"rendered":"https:\/\/debuggersspace.com\/index.php\/2014\/05\/23\/how-does-output-caching-work-in-asp-net\/"},"modified":"2014-05-23T05:56:00","modified_gmt":"2014-05-23T04:56:00","slug":"how-does-output-caching-work-in-asp-net","status":"publish","type":"post","link":"https:\/\/debuggersspace.com\/index.php\/2014\/05\/23\/how-does-output-caching-work-in-asp-net\/","title":{"rendered":"How does output caching work in ASP.NET?"},"content":{"rendered":"<div class='booster-block booster-read-block'>\n                <div class=\"twp-read-time\">\n                \t<i class=\"booster-icon twp-clock\"><\/i> <span>Read Time:<\/span>1 Minute, 10 Second                <\/div>\n\n            <\/div><div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"background-color: white; color: #111111;\">\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">Output caching is a powerful technique that increases request\/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to make the response cacheable.<\/span><\/div>\n<div style=\"background-color: white; color: #111111;\">\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">To make a response eligible for output caching, it must have a valid expiration\/validation policy and public cache visibility. This can be done using either the low-level&nbsp;<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">OutputCache&nbsp;<\/code>API or the high-level&nbsp;<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">@ OutputCache&nbsp;<\/code>directive. When output caching is enabled, an output cache entry is created on the first&nbsp;<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">GET&nbsp;<\/code>request to the page. Subsequent<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">GET&nbsp;<\/code>or&nbsp;<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">HEAD&nbsp;<\/code>requests are served from the output cache entry until the cached request expires.<\/span><\/div>\n<div style=\"background-color: white; color: #111111;\">\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">The output cache also supports variations of cached&nbsp;<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">GET&nbsp;<\/code>or&nbsp;<code style=\"border: 0px; color: #990000; margin: 0px; padding: 0px;\">POST&nbsp;<\/code>name\/value pairs.<\/span><\/div>\n<div style=\"background-color: white; color: #111111;\">\n<span style=\"font-family: Arial, Helvetica, sans-serif;\">The output cache respects the expiration and validation policies for pages. If a page is in the output cache and has been marked with an expiration policy that indicates that the page expires 60 minutes from the time it is cached, the page is removed from the output cache after 60 minutes. If another request is received after that time, the page code is executed and the page can be cached again. This type of expiration policy is called absolute expiration &#8211; a page is valid until a certain time.<\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Output caching is a powerful technique that increases request\/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to make the response cacheable. To make a response eligible for output caching, it must have a [&hellip;]<\/p>\n","protected":false},"author":43,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[23],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-asp-net"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Himanshu Namdeo","author_link":"https:\/\/debuggersspace.com\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"Output caching is a powerful technique that increases request\/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to make the response cacheable. To make a response eligible for output caching, it must have a&hellip;","_links":{"self":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/61"}],"collection":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/debuggersspace.com\/index.php\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}