避免在Firefox中进行缓存控制

编程入门 行业动态 更新时间:2024-10-26 16:30:00
本文介绍了避免在Firefox中进行缓存控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当响应头为

Cache-Control:无存储

Cache-Control : no-store

Firefox存储在内存缓存设备中。

Firefox stores in memory cache device.

如果响应头为

缓存控制:无缓存

然后将firefox存储在磁盘缓存设备中。

then firefox stores in disk cache device.

如果响应标头为

缓存控制:无存储,无缓存,必须重新验证,最大年龄= 0,检查后= 0,检查前= 0

Cache-Control : no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0

然后将firefox存储在内存中缓存设备

then firefox stores in memory cache device

不过,Firefox将请求缓存在任何一个缓存设备中。如何避免这种情况

However firefox caching the request in any of one cache device. How to avoid that

推荐答案

  • 尝试将过期或最大年龄设置为最小值?
  • 另一个示例:缓存控制:私有,不缓存,no-cache = Set-Cookie,代理重新验证
  • 另一种方法是确实喜欢file.png吗?97887987979797(不是最好的...)
  • Google的另一个示例:缓存控件:私有,最大年龄= 0 有效期:-1
  • try to set expire or max-age to minimum?
  • another example: Cache-Control: "private, no-cache, no-cache=Set-Cookie, proxy-revalidate"
  • also another way is to do like file.png?97887987979797 (not best...)
  • another example from google: Cache-Control: "private, max-age=0" Expires: "-1"
  • 更多推荐

    避免在Firefox中进行缓存控制

    本文发布于:2023-10-28 05:15:36,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1535630.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:缓存   Firefox

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!