Skip to content

Turns off Caching for JSON responses#680

Open
lucanos wants to merge 1 commit intoflightphp:masterfrom
lucanos:json-nocache
Open

Turns off Caching for JSON responses#680
lucanos wants to merge 1 commit intoflightphp:masterfrom
lucanos:json-nocache

Conversation

@lucanos
Copy link

@lucanos lucanos commented Feb 19, 2026

Adds headers to json response to avoid caching of the response

Adds headers to json response to avoid caching of the response
@craigrodway
Copy link

What's the rationale for having Flight set this as the default?

There are legitimate cases where developers may want to have a JSON response cached for all requests, or just for some requests and not others. I think these headers should be opt-in rather than a blanket default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments