zoukankan      html  css  js  c++  java
  • ASP.NET清除页面缓存的方法

    ASP.NET清除页面缓存

         (1)   Response.Buffer = true;
                 Response.ExpiresAbsolute
    = System.DateTime.Now.AddSeconds(-1
    );
                 Response.Expires
    = 0
    ;
                 Response.CacheControl
    = "no-cache"
    ;
                 Response.AddHeader(
    "Pragma", "No-Cache"
    );

        (2) HTML方法
           
    <HEAD>
            <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
            <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
            <META HTTP-EQUIV="Expires" CONTENT="0">
            </HEAD>

        (3) 重新调用原页面的时候在给页面传一个参数:    href="****.ASPX?random()"

  • 相关阅读:
    安装Hive2及配置HiveSever2
    sqoop语句
    Sqoop配置
    IO流的概述
    List集合的简单使用
    包装类
    访问权限修饰符
    接口
    抽象类
    final关键字
  • 原文地址:https://www.cnblogs.com/sheseido/p/1862272.html
Copyright © 2011-2022 走看看