n0-computer / beetle

Other
34 stars 15 forks source link

gateway(cache): improve cache control headers #251

Open Arqu opened 2 years ago

Arqu commented 2 years ago

Our header logic for cache control is very crude. Either we say to the browser to cache forever if it's a ipfs/CID or simply set the Last-Modified header to now().

We should explore cache logic around ipns/dns TTLs, content publishing timestamp for Last-Modified

Arqu commented 2 years ago

This is a longer term thing and not part of the spec.