zoukankan      html  css  js  c++  java
  • 缓存的技巧

     Put that in the HEAD section of the HTML page
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    
    However, MS IE (almost all versions) do not process the instruction properly due to the cache mechanism.

    The workaround is to included a second <HEAD> section at the bottom of the page (no joke!).

    <HTML><HEAD>
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="REFRESH" CONTENT="5">
    <TITLE> Demonstration Pragma No-cache </TITLE>
    </HEAD><BODY>
    This page has 2 HEAD sections to properly bypass the cache in all browser.
    </BODY>
    <HEAD><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></HEAD>
    </HTML>
    
    NOTE: the above example uses META HTTP-EQUIV="REFRESH" to make the browser reload the page automatically after 5 seconds, this is for demonstration purpose only (to see that the cache is actually bypassed). This has nothing with the bypassing of the cache itself.
  • 相关阅读:
    nginx开启ssl模式
    安装nginx
    node的express框架
    使用Thumbnails工具对图片进行缩放,压缩
    正则
    VUE设置全局方法和属性
    js——XHR知识归纳
    页面资源加载过程
    Mongodb的增删改查
    Mongodb基本概念
  • 原文地址:https://www.cnblogs.com/xiaotaoliang/p/797028.html
Copyright © 2011-2022 走看看