Detailed description of ASP. NET pages cached by msdn

Source: Internet
Author: User

ASP. NET

Cache ASP. NET pages

ASP. NET allows you to cache partial or all responses generated by ASP. NET pages. in ASP. NET, this technology is called output cache. You can cache pages on the browser that sends the request, the web server that responds to the request, and any other device (such as a proxy server) with cache functions in the request or response stream. Cache provides you with a powerful way to improve Web ApplicationsProgramPerformance. The cache function allows you to use the cache to meet subsequent requests to the page, so that you do not need to runCode. Caching pages that are most frequently accessed on the site can fully improve the web server throughput (usually calculated based on the number of requests per second ).

You can specify the cache settings on the page or configuration file or by using the cache API in programming. For more information, see set page cache.

You can query the cache Page Based on the string parameter value or form variable value (control value. You must use the varybyparam attribute of the @ outputcache command to explicitly enable caching based on these types of values. For more information, see multiple versions on the cache page.

When a user requests a cache page, ASP. NET determines whether the cache output is still valid Based on the cache policy defined for the page. If the output is valid, the cached output is sent to the client without reprocessing the page. ASP. NET allows you to run code during this verification check so that you can write custom logic used to check whether a page is valid. For more information, see How to: check the validity of the cache page.

Sometimes it is impractical to cache the entire page, because some parts of the page may need to be modified at each request. In these cases, part of the page can be cached. ASP. NET provides the ability to cache only several parts of ASP. NET pages. For more information, see some sections on the cache ASP. NET page.

See How to: Set ASP. NET page cacheability in declarative Mode
How to: set page cache by programming
How to: Set the expiration time value of ASP. NET page Cache
How to: check the validity of the cache page
How to: cache page output using file Dependencies
How to: Use the cache key dependency cache page to output the cache configuration concept in ASP. net asp. NET cache Overview
Set page Cache
Multiple versions of the cache page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.