开发者

Force browsers to reload cache WITHOUT server side code

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜