How to prevent caching from jQuery Ajax?

后端 未结 3 1212
生来不讨喜
生来不讨喜 2020-12-21 08:50

Could anyone please help me with this? I have a web page using .manifest for offline storage caching. In that page, I use jQuery ajax call to get the data from the server. I

3条回答
  •  Happy的楠姐
    2020-12-21 09:00

    put the random string into url like "get.php?random="+Math.random()" can solve this problem. It is not the best solution but It works great.

提交回复
热议问题