bingtuag 发表于 2017-4-8 12:20:58

取消网页缓存的html,asp,php 代码

  在HTML里的写法以下是代码片段:<meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache,must-revalidate"><meta http-equiv="expires" content="0">
  在ASP里的写法以下是代码片段:Response.Expires = -1Response.ExpiresAbsolute = now()-1Response.CacheControl = "no-cache"
  在PHP里的写法以下是代码片段:header("expires:mon,26 jul 1997 05:00:00 gmt");header("cache-control:no-cache,must-revalidate");header("pragma:no-cache");
  
页: [1]
查看完整版本: 取消网页缓存的html,asp,php 代码