Skip to content

Method registry should include cacheability #54

Closed

Description

@jyasskin

HTTP Methods have 3 boolean properties, all of which 8.1.2 says a registration needs to define, but only "Safe" and "Idempotent" were included in the registry while "Cacheable" was omitted.

I filed this as https://www.rfc-editor.org/errata/eid5300, but it probably makes more sense as a change for ter.

Activity

  1. mnot commented on Oct 10, 2018

    @mnot
    Member

    I think the only concern I have here is that people often misinterpret "cacheable" - e.g., see #17.

  2. royfielding commented on Oct 10, 2018

    @royfielding
    Member

    FWIW, that's because it isn't a boolean property of the method, but rather a capability inherent in the system in which one aspect is the method semantics.

    I'd prefer to remove that from the registration table. We could still require that the registration describe how and under what conditions the method semantics might be cacheable.

  3. mnot commented on Oct 10, 2018

    @mnot
    Member

    It's not in the registration table, and I tend to agree it should be kept out for the reasons above.

  4. mnot commented on Nov 13, 2018

    @mnot
    Member

    This was discussed regarding Variants, and I think the answer will be the same; we should record this sort of thing in documentation elsewhere, e.g., the wiki.

  5. jyasskin commented on Nov 20, 2018

    @jyasskin
    Author

    https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#cacheable.methods says

    Request methods can be defined as "cacheable" ...

    but then the method definitions themselves seem to consistently say

    The response to a XXX request is cacheable [if ...]

    After this discussion, I think the method definitions ("The response is cacheable") are more correct, and that therefore my initial suggestion in this erratum is incorrect.

    https://httpwg.org/http-core/draft-ietf-httpbis-semantics-latest.html#considerations.for.new.methods repeats the less-correct form by listing "cacheable" along with "safe" and "idempotent" as properties of the method. I think removing "cacheable" from that list, and changing "If the new method is cacheable, ..." to something like

    The new method's definition ought to describe whether, how, and under what conditions, a cache can store a response and use it to satisfy a subsequent request.

    would have prevented me from getting confused enough to file this issue. Do the experts here like that direction?

  6. MikeBishop commented on Nov 21, 2018

    @MikeBishop
    Contributor

    Note that RFC7540 Section 8.2 relies on that distinction by saying that pushed requests MUST be cacheable in order to be pushed, but conditionally defines what happens if the delivered response does turn out to be cacheable. Eliminating the distinction entirely would leave 7540 slightly unmoored.

  7. mnot commented on Feb 5, 2019

    @mnot
    Member

    I think the proposed edit to considerations for new methods is helpful; we could address the 7540 concern by parenthetically adding "also known as cacheable methods" or similar.

    Note also the first bullet of storing responses. If we can come up with a better phrase than "defined as cacheable" that's great, but it needs to be distinct from response cacheability.

  8. mcmanus commented on Mar 25, 2019

    @mcmanus

    ietf104: mark needs to research the 7540 question to determine if this can be made editorial based on jyasskin's above comment

  9. self-assigned this
    on Apr 12, 2019
  10. mnot commented on Jul 5, 2019

    @mnot
    Member

    7540 points directly to 723x for this, so we have some leeway. I think we can address this by parenthetically stating that a method that does not define the conditions under which it can be used by a cache is by definition not cacheable.

    Will do a PR.

  11. added a commit that references this issue on Jul 5, 2019
    39f4517
  12. added a commit that references this issue on Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions