zoukankan      html  css  js  c++  java
  • 在IIS中禁用特定MIME类型的缓存

        昨天完成甘特图V3.0的开发,在vs2005上测试好好的,拿到ISS中测试,触发一个事件后,图形还是老样子,必须刷新一下才看到最新的结果,郁闷... 今早发现其实文件夹中的图片已经更新,只是IE上未更新,问题得解--IIS的缓存问题。
    看微软的文件:
    MIME stands for "Multipurpose Internet Mail Extensions," which refers to a way of configuring browsers or mail clients to view files that are in multiple formats based on a "MIME type." "MIME mapping" is a process by which Internet Information Server (IIS) "maps" files by their extensions to a particular MIME type. For example, a file with the extension .htm has a MIME type of "text/html", whereas a file with the extension .gif has a MIME Type of "image/gif".

    在IIS中禁用特定MIME类型的缓存:
    1. 打开 Internet 服务管理器 (ISM)。
    2. 找到您默认 Web 站点下 站点 文件夹。
    3. 右击 站点 文件夹并选择 属性
    4. 选择 HTTP 头 选项卡
    5. 单击 添加 自定义 HTTP 标题 部分中。
    6. 添加名为标题 Cache-Control 其值为 no-cache
    7. 单击 应用, 确定

  • 相关阅读:
    Javascript Property Names
    Java泛型
    Activity 与 Task
    使用ddns搭建免费服务器
    DDNS
    SimpleAdapter用法
    Java KeyNote
    Android无法访问本地服务器(localhost/127.0.0.1)的解决方案
    Android 添加网络权限
    Java 匿名内部类
  • 原文地址:https://www.cnblogs.com/wf225/p/1004048.html
Copyright © 2011-2022 走看看