Skip to content

max-age: 0 should be allowed? #4

@JeffBNimble

Description

@JeffBNimble

Discussed in #3

Originally posted by JeffBNimble November 1, 2023
Hello, I notice that if max age is 0, you don't write a cache-control header and per the HTTP caching specification here: https://datatracker.ietf.org/doc/html/rfc7234#section-5.2.2.8, the max-age is allowed to be any "non-negative integer". Can you explain the choice to not write a cache-control header on a response if max age is set to 0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions