Force browser to not use cache when requested for file using anchor tag

烈酒焚心 提交于 2019-12-05 14:54:00

I'll add as an answer. Try adding a random number to the query part of the href:

?param=[random]

As per my own comment for one of the answers:

According to wikipedia I can set the response header parameter: Cache-Control: no-cache

http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Effects_of_selected_HTTP_header_fields

After receiving a response with this header, the browser will not cache this data anymore.

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