0

it seems it only caches the json call, so whenever me or my users hit window back, it only shows the json data i loadet.

Can i somehow force it to load all, or setup the cache to cache the whole page?

Thank you so much.

RK4002
  • 97
  • 2
  • 11

2 Answers2

0

Yes, you are right. Browser will load page from cache while hit back button. I placed some text and reference from stack answer. See more details and implementation for Gecko and WebKit.

Community
  • 1
  • 1
AddWeb Solution Pvt Ltd
  • 21,025
  • 5
  • 26
  • 57
  • Thanks, the problem is, i might just reload if for example body does not have class called loadet, but i have to run this function in EVERY json request i make, must be another solution im not seeing? :-) – RK4002 Dec 04 '16 at 13:44
0

I just put cache: false, in my json and it worked for me.

Eric Darchis
  • 24,537
  • 4
  • 28
  • 49
RK4002
  • 97
  • 2
  • 11