Skip to content

Response code handling seems inconsistent with the spec #95

@HonoreDB

Description

@HonoreDB

Hi,

The response code handling section links to http://tools.ietf.org/html/rfc2616#section-13.4, but seems inconsistent with it. This gem includes 404 in the whitelist of cacheable response codes, but the RFC does not.

The RFC also says that a response with a code outside the whitelist may still be cached if there's a cache header that allows it. Rack-Cache doesn't seem to honor the italicized part of that--e.g. a 204 response with an Expires header is never cached.

Are these departures intentional? Would you be amenable to a PR or two that changes them or makes them configurable?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions