Click here to Skip to main content
15,913,055 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi sir,
Tell me the exact use of Response.Cache.SetCacheability(HttpCacheability.NoCache) with examples. I am new to dotnet field, i search in google but
cant able to understand clearly. Kindly give me the solution for this problem.
Posted

1 solution

Hi,

HttpCacheability.NoCache in your code tells your browser that don't cache the page.

Basically tells that the cache will not be available for the page.
So it can be implemented like when clicking the browser back button, it should not cache anything of the current page.
So in these type of scenarios, we implement it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900