开发者

Force browsers to reload cache WITHOUT server side code

开发者 https://www.devze.com 2023-04-05 03:54 出处:网络
I need the ability to force reload of cache when a user goes to my page (for a few reas开发者_开发知识库ons) and I have seen ways to do this with server side code but I am using a hosted CMS and do no

I need the ability to force reload of cache when a user goes to my page (for a few reas开发者_开发知识库ons) and I have seen ways to do this with server side code but I am using a hosted CMS and do not have the ability to use server side code. Is there a way to do this with javascript alone?

Or should I use something like myjavascript.js?=v1 on all of my css and js files?

what is the best method?


You could use an HTML meta tag, something like

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
0

精彩评论

暂无评论...
验证码 换一张
取 消