0

When I open any any page in browser and click on back button, it load browser from cache. I need to refresh page when I click back button, not load data from browser cache. Is there any possible solution?

2

1 Answer 1

1

You might need Request Header Chache-Control

The Cache-Control general-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. The directives specify behavior intended to prevent caches from adversely interfering with the request or response. These directives typically override the default caching algorithms. Cache directives are unidirectional in that the presence of a directive in a request does not imply that the same directive is to be given in the response.

  Note that HTTP/1.0 caches might not implement Cache-Control and
  might only implement Pragma: no-cache 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your valuable answer. I did not understand that how can I use it in my gsp page. I am working on grails. Should I put it the page from where I am going to back or the page at I will go after press back button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.