Skip to content

Unnecessary extra headers send #626

@joanhey

Description

@joanhey

Actually always add Cache-control and Expires headers.

If there is no Cache-Control header and no Expires header, and no Last-Modified header (which most web servers send by default for static assets) is never cached by the browser.

And Cache-Control (http 1.1) have preference over Expires (http 1.0)

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires

Note: If there is a Cache-Control header with the max-age or s-maxage directive in the response, the Expires header is ignored.

Any app using an API with Flight, also don't need these headers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions