Prevent a browser from caching a page - Caching pages and data - Response.Cache.SetNoStore();

Q.  In order to prevent a browser from caching a page which of these xstatements should be written?
- Published on 16 Jun 15

a. Response.Cache.SetNoStore();
b. Response.Cache.SetNoServerCaching();
c. Response.Cache.SetNoCaching();
d. None of these

ANSWER: Response.Cache.SetNoStore();
 

    Discussion

  • Brijesh   -Posted on 24 Sep 15
    Response.Cache.SetNoStore();prevent a browser from caching a page. It will instruct the browser not to store the responses in its history.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)