Skip to content

Suggestion: Make use of more HTTP caching headers #17

@ldesgoui

Description

@ldesgoui

Hello,

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.

MDN has a great resource about this: https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching

Pretty cool project!

Bests

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions