Este artículo compartirá con usted el método de forzar no caché en ASP, HTML y JS.
ÁSPID
- Respuesta.Buffer = True
- Respuesta.ExpeesabSolute = Now ()-1
- Respuesta.expires = 0
- Respuesta.cachecontrol = no-cache
- Respuesta.AddHheaderPragma, No-Cache
Html
- <metahttp-oquiv = content-typeContent = text/html; charset = gb2312/>
- <metahttp-oquiv = pragmacontent = no-cache>
- <metahttp-oquiv = cache-controlcontent = no-cache>
- <metahttp-oquiv = expireContent = 0>
Javascript
Para JS, puede agregar un parámetro aleatorio después de referirse a JS.
- <scriptType = text/javaScriptsrc = 'jscript.js? rnd = 10092'>
Lo anterior es todo el contenido de este artículo, espero que les guste.