Caching in HTTP
HTTP is typically used for distributed information systems, where performance can be improved by the use of response caches.
如下狀況,瀏覽器不會對請求進行緩存html
沒有配置 cache-control 或 last-modified、expiressegmentfault
只配置了 cache-control,且值爲 public 或 privatepromise
cache-control瀏覽器
將採用 Heuristic Expiration緩存
Since origin servers do not always provide explicit expiration times, HTTP caches typically assign heuristic expiration times, employing algorithms that use other header values (such as the Last-Modified time) to estimate a plausible expiration time. The HTTP/1.1 specification does not provide specific algorithms, but does impose worst-case constraints on their results. Since heuristic expiration times might compromise semantic transparency, they ought to used cautiously, and we encourage origin servers to provide explicit expiration times as much as possible.
網上有不少介紹ide
這是IE的私有屬性spa