I am working on a single page application. And I have one page which makes a server requests when ever that page is loaded. I made some changes and deployed on the server. But when I am using the live version application, it's not reflecting the changes and whatever the changes I made it's updating in the database but after reloading it's again displaying the old records. This is not happening on local environment.
The next thing I tried is I deleted the cookies manually and then refresh the page. Now it's reflecting the current changes. But this one leads me to some questions.
- Since the request is made to the server and the records are pull out from database to display. Then why the chrome was displaying the old data ?
- Is it because of the cookies ? If it is then what is the solution for this kind of problem. Because for end users they might not know to delete the cookie. One fix I can think of is to delete the old cookies whenever the page is loaded but then this solution is like there is no cookie.
- Does it only happen in V8 ? What about spider monkey or other javascript run time environments ?
Regards