金华网站建设明细报价表,十大经典随身空间小说推荐,赞助网站怎么做,淘宝商城正品近期在改页面的时候看到了页面中有response.setHeader(Pragma,No-cache); 这样的语句#xff0c;不知道是做什么的#xff0c;经查得知原来是禁止浏览器缓存的#xff0c;现把Html#xff0c;Asp#xff0c;Php#xff0c;Jsp4种语言禁止浏览器缓…近期在改页面的时候看到了页面中有response.setHeader(Pragma,No-cache); 这样的语句不知道是做什么的经查得知原来是禁止浏览器缓存的现把HtmlAspPhpJsp4种语言禁止浏览器缓存页面的方法摘录出来给大家分享一下HTTP:META HTTP-EQUIVpragma CONTENTno-cacheMETA HTTP-EQUIVCache-Control CONTENTno-cache, must-revalidateMETA HTTP-EQUIVexpires CONTENTWed, 26 Feb 1997 08:21:57 GMTMETA HTTP-EQUIVexpires CONTENT0ASP:response.expires0response.addHeader(pragma,no-cache) response.addHeader(Cache-Control,no-cache, must-revalidate)PHP:header(Expires: Mon, 26 Jul 1997 05:00:00 GMT);header(Cache-Control: no-cache, must-revalidate);header(Pragma: no-cache);JSPresponse.setHeader(Pragma,No-cache); response.setHeader(Cache-Control,no-cache); response.setDateHeader(Expires, 0); 转载于:https://www.cnblogs.com/aaa6818162/archive/2009/07/27/1532111.html