友情提示:緩存什麼的,完全依賴相關http header頭信息來標記和判斷的哦 緩存讀取順序: 首先讀取本地緩存,如果條件滿足就取本地緩存,否則往後走代理緩存,同理,條件滿足就是從代理緩存取資源(可能存在多級代理緩存) 如果一條鏈路上的資源都不符合,那麼就去源服務器獲取 緩存優先級:Cache-Control Expires Etag Last-Modified 緩存的分類和優先
There are two different categories of HTTP caching. One is so-called Strong/Force Cache, whilst the other is called as Negotiation Cache. Here're the brief intro of those: Force Cache takes preceden