5 ms·
> The problem with long cache times is that then some readers might see an out-of-date version of your page. I would argue that that is a small inconvenience to
by moviuro 6y ago
> The problem with long cache times is that then some readers might see an out-of-date version of your page. I would argue that that is a small inconvenience to avoid no readers being about to see your article at all.
Aren't ETags exactly meant for that though?
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ET...
- AndrewStephens 6y agoETags are really aimed at a different problem, where an end-user/client wants to refresh content that they already have. They can help let a intermediate cache know that content has been updated, but the cache has to be configured to ask for it. Plus, for dynamic content even the cost of calculating the Etag is not zero.