qwerthhusn
V2EX  ›  浏览器

问一个浏览器缓存的策略?

  •  
  •   qwerthhusn · May 15, 2019 · 4159 views
    This topic created in 2632 days ago, the information mentioned may be changed or developed.

    在 Chrome 上,F12 去看,发现有的资源是发送请求了,只不过服务器返回了 304,但是有些资源完全压根没有发送请求,只是从本地取的资源(显示 From Memory Cache 或 From Disk Cache )。请问 Chrome 是怎么决定是去服务器检查内容有没有变化,,还是干脆直接从本地取数据?

    而且发现 Firefox 的行为还是跟 Chrome 不一致

    1 replies    2019-05-15 11:59:19 +08:00
    yhxx
        1
    yhxx  
       May 15, 2019
    关键词:cache-control、ETag
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4449 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 650ms · UTC 10:06 · PVG 18:06 · LAX 03:06 · JFK 06:06
    ♥ Do have faith in what you're doing.