How do I not cache AJAX POST in mobile safari app?

给你一囗甜甜゛ 提交于 2019-12-06 09:08:53

One solution that always works is to add a parameter to the request that has the time the request was made (timestamp essentially). This makes every request a unique snowflake that the server has to work on.

Its similar to the idea of putting the version of your website into the name of all your script/css files so that users that come to your site after an update have to download the new files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!