Skip to content

[view] [cache] Too restrictive cacheable condition as only HTTP 200 and GET are cacheable #199

Open
@alquerci

Description

@alquerci

The view cache work well but suffer of a limitation in order to be compatible with HTTP specifications about cacheable status codes and methods.

Expected

  • On Symfony4 pages with response 200, 203, 300, 301, 302, 404, 410 are cacheable with additional condition on the Cache-Control status.

  • Be able to cache GET and HEAD methods.

Actual

  • Only pages with HTTP 200 response can be stored on cache.
  • Only response from GET method can be stored on cache.

More Details

See https://github.com/symfony/symfony/blob/v4.1.6/src/Symfony/Component/HttpFoundation/Response.php#L506

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