You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like HTTP caching headers could score you some very cheap, significant wins.
I saw Cache-Control already returns immutable, I think you could probably push that to public, max-age=31536000, immutable, as well as providing ETag, Last-Modified and Expires.
There are more cases where those can be returned as well, I think that any response for which a NAR was successfully fetched, so directory listing, redirects, but also 404s when a file was not found.
Hello,
It seems like HTTP caching headers could score you some very cheap, significant wins.
I saw
Cache-Control
already returnsimmutable
, I think you could probably push that topublic, max-age=31536000, immutable
, as well as providingETag
,Last-Modified
andExpires
.There are more cases where those can be returned as well, I think that any response for which a NAR was successfully fetched, so directory listing, redirects, but also 404s when a file was not found.
MDN has a great resource about this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching
Pretty cool project!
Bests
The text was updated successfully, but these errors were encountered: