[SEO] Cache mechanism notes

  • Check if the cache is fresh and do NOT send request

Expires

Cache-Control: max-age=...

  • Send request and check if 304 or a fresh payload should be returned:

Last-Modified <===> If-Modified-Since

Etag <===> If-None-Match

  • Do not cache anything

Cache-Control: no-store

  • Stale-while-revalidate

Cache-Control: no-cache

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *