이 기사는 ASP, HTML 및 JS에서 캐시를 강제하는 방법을 공유합니다.
ASP
- 응답 .buffer = true
- 응답 .expiresabsolute = now () -1
- 응답 .expires = 0
- 응답 .cachecontrol = no-cache
- 응답 .addheaderpragma, no-cache
HTML
- <metahttp-equiv = content-typecontent = text/html; charset = gb2312/>
- <metahttp-equiv = pragmacontent = no-cache>
- <metahttp-equiv = Cache-ControlContent = no-cache>
- <metahttp-equiv = expirescontent = 0>
자바 스크립트
JS의 경우 JS를 참조한 후 랜덤 매개 변수를 추가 할 수 있습니다.
- <scriptType = text/javascriptrc = 'jscript.js? rnd = 10092'>
위는이 기사의 전체 내용입니다. 나는 당신이 그것을 좋아하기를 바랍니다.