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">
精彩评论