People who made a recommendation on maximum caching for 1 year did not think about it correctly.
First of all, if a visitor is served an outdated cached file, then why should he give any benefit so that he suddenly downloads a new version after 1 year? If the file has 1 year TTL, from a functional point of view, this means that the file is not intended to be modified at all.
So, why do you need more than 1 year?
1) Why not? You don’t need to tell your browser visitors “hey, this file is 1 year old, maybe it’s worth checking to see if it has been updated.”
2) CDN services. . Most content delivery networks use a cache header to decide how long to efficiently serve a file from an edge server. If you have 1 year of managing the cache for files, it will at some point begin to re-request immutable files from the source server, and the cache cache should be completely full, which will lead to slower loads for the client and unnecessary causes the origin.
What is the point of having a maximum of 1 year? Which browsers will throttle in an amount exceeding 31536000?
suncat100 Mar 05 '15 at 7:31 2015-03-05 07:31
source share