3 ms·
Because you want the ability to invalidate the cache for an entire site at the same time. So you would still need some map between domain and hash.
by skeptrune 10mo ago
Because you want the ability to invalidate the cache for an entire site at the same time. So you would still need some map between domain and hash.
- infogulch 10mo agoYou don't need to invalidate anything if the cache is keyed on the hash of the served objects. To put it another way, a hash-keyed cache results in perfectly precise, instant, distributed cache invalidation. Read the code in my comment again.