Author: @Elva Wang Date: Nov 19, 2020 性質: Tech Share
重要性——
Expire DateCache-controlpublic:公開的資源,可以被所有節點暫存private:私有的資源,只被允許儲存成使用者的本地快取public 及 private 可設定 max-age=...Cache-Control: private max-age=2592000no-cache:快取需存取,但是要重新驗證。no-store:不存取任何快取。Etag:If the ETag header was part of the response for a resource
⇒ the client can issue an If-None-Match in the header of future requests.
Response with a normal 200 OK.
or Return 304 Not Modified (with an empty body)
vary:
MemcachedKey / Value 的方式:多台的 Server 主機做為 Memcached Server,並將之變成群組。
把每一個 Web server 的 Cache 資料分散到每一個 Memcached 主機,達到資料分散的做法(分散式快取 )。
優:
若是快取記憶體不足,只要增加快取記憶體伺服器即可。
⇒ 延展性變高
不同主機上的快取記憶體資料可預先分配。
⇒ 有效降低記憶體因過多 Cache 造成太碎片化的問題。
劣:
RedisIt caches content (such as images, videos, or webpages) in proxy servers that are located closer to end users than origin servers.

—— 想知道但來不及查的東西:
vary (bookmark6: Understanding the vary header)[不是工程師] 讓網站速度飛快的秘密,你了解什麼是網頁快取(Cache)嗎?
Content delivery networks (CDNs)
Understanding The Vary Header - Smashing Magazine
資料庫 → 如何處理記憶體碎片化