内容 |
iis会按文件地址及参数将文件缓存到客户端,以便再次访问该内容时速度更快。如果要取消这种机制则需要禁止缓存文件。 一、编程方式 response.buffer = true; response.expiresabsolute = datetime.now.adddays(-1); response.cache.setexpires(datetime.now.adddays(-1)); response.expires = 0; response.cachecontrol = no-cache; 二、代码方式 代码如下: <%@ outputcache duration=1 varybyparam=none location=none %> |