简体   繁体   中英

ASP.net output caching

Just a quick question so I full understand this better, the way I understand it currently is if you set a page to be cached the HTML generated is essentially saved and then reserved.

This means no code behind on that page is run until the cache expries and regenerates. Also, if say for example I have a dynamically generated date stamp, this will always be the date the cache was generated.

Is this correct?

Read the artice about caching . If you want to fully understand Http Caching, you should also read Caching In Http . And the answer is yes, once the page is saved in cache, no code behind is run before it's regenerated. Also, dynamically generated content will stay in cached page as static

Yes, but you can flag some portions of code or some controls to be rewrited. You can catch only some controls or all controls except one...

Catch the data from database or some collections...

Is a lot flexible.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM