How to disable caching on back button of the browser?



How to disable caching on back button of the browser?..

Answer / Shashi Yadav

To disable caching on the back button of a browser, you can add various HTTP headers to your response, such as `Cache-Control: no-cache`, `Pragma: no-cache`, or `Expires: 0`. This instructs the browser not to use cached content when navigating back.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

When will we prefer to use set and list in java and why?

1 Answers  


What is the epoch date?

1 Answers  


When do you create an index?

0 Answers  


What is the difference between getCodeBase and getDocumentBase methods?

1 Answers   CS Business Services,


Can we sort hashmap in java?

1 Answers  


Why string is popular hashmap key in java?

1 Answers  


where do we use init()

2 Answers  


Can static method access instance variables ?

1 Answers  


what is purpose of writting public static void main(Strind arg[]) in java..?

4 Answers   ITC Infotech,


what is encapsulation in java? Explain

1 Answers  


Why do we override tostring method in java?

1 Answers  


What is a class instance variable?

1 Answers   Tech Mahindra,


Categories