Devs.tw 是讓工程師寫筆記、網誌的平台。歡迎您隨手紀錄、寫作,方便日後搜尋!
There are only two hard things in Computer Science: cache invalidation and naming things.
Generally you should cache for as long as possible, to maximize page load speed, but not much longer than you expect new content to show up... Otherwise no one will see the new content.