Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] [HttpCache] AbstractSurrogate doesn't treat 304 response as successful #43997

Closed
@aleho

Description

@aleho

Symfony version(s) affected

4.4+

Description

WhenHttpCache is allowed to preserveLast-Modified (see#42355) clients will execute subsequent requests withIf-Modified-Since. If cache then returns a304 Not Modified this will result in an exception.

This cycle will continue:

  • Request: initial
  • Response: sucessful, cache store,Last-Modified header
  • Request: withIf-Modified-Since
  • Response: 500 (client drops cache), error page
  • Request: initial without timestamp
  • Response: sucessful

How to reproduce

Merge PR#42355 or check outhttps://github.com/aleho/symfony-httpcache for a minimal demo.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp