Re:How to Build a Low-Tech Website
by protonfish on Wednesday September 26, 2018 @03:47PM
(#18079586)
Unfortunately there is no "never" setting. The HTTP spec recommends 1 year.
Re:How to Build a Low-Tech Website
by user111233 on Wednesday September 26, 2018 @11:01PM
(#18081854)
Isn't the etag just a hash of the content?
Re:How to Build a Low-Tech Website
by protonfish on Thursday September 27, 2018 @08:29AM
(#18083803)
It can be, but doesn't need to be as long as it is some sort of indication of the uniqueness of the content. A last modified date should work in the same way.
Since it's a statically generated website, I'd favor never expiring the cache, and using cache-busting hashes instead. That way the cache is only emptied when the file actually changes.