Chetan Sandeep Renu
Chetan Sandeep Renu

Reputation: 173

clearing browser history using jquery/javascript

I am having an application where there will be lots of ajax calls and jquery load functions etc.I found that dynamic content is not loaded correctly every time i open the page due to browser history,if i delete the history and refresh the page its working fine.now

  1. is there any way to clean up the history of the browser?(is this method correct?)
  2. Can i prevent the page from being cached????using any jquery code.so that my application wont be stored in browsers history.

Upvotes: 0

Views: 2790

Answers (1)

Luke94
Luke94

Reputation: 712

you need to set cache to false in your jquery ajax settings

see here

Upvotes: 1

Related Questions