Skip to content

View responses break HttpCache in Symfony #9

@RyanThompson

Description

@RyanThompson

When returning a view from a controller, everything breaks cause it's not an instance of Response..

I tried simply overriding the HttpCache but it's entirely private (annoying) so had to copy the file.

Any thoughts on how to remedy this in a more elegant manner?

I also tried checking the response type prior and converting to response object but it's no use if you have to evaluate the response to test it - cache is missed at that point.

Here is all I did to catch it: laravel-streams/streams-core@4550c20#diff-8811282b9f527c7bce6daf4944b4ebe5R489

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