Reputation: 61773
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?
Upvotes: 1
Views: 435
Reputation: 39501
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
Upvotes: 3
Reputation: 2921
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.
Upvotes: 1