Эта статья поделится с вами методом принуждения кеша в ASP, HTML и JS.
Аспирант
- Response.buffer = true
- Response.expiresabsolute = теперь ()-1
- Response.expires = 0
- Response.cachecontrol = no-cache
- Response.addheaderpragma, без кэша
HTML
- <metahttp-equiv = content-typecontent = text/html; charset = gb2312/>
- <metahttp-equiv = pragmacontent = no-cache>
- <metahttp-equiv = cache-controlcontent = no-cache>
- <metahttp-equiv = expirescontent = 0>
JavaScript
Для JS вы можете добавить случайный параметр после ссылки на JS.
- <scripttype = text/javascriptsrc = 'jscript.js? rnd = 10092'>
Приведенное выше содержимое этой статьи, я надеюсь, вам понравится.