You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add no_cache then it breaks the response, and I get the error
Response does not support the following options: "no-cache".
The error led me to following block of code in Symfony\Component\HttpFoundation
if ($diff = array_diff(array_keys($options), ['etag', 'last_modified', 'max_age', 's_maxage', 'private', 'public', 'immutable'])) {
throw new \InvalidArgumentException(sprintf('Response does not support the following options: "%s".', implode('", "', $diff)));
}
adding no_cache support will be really helpful.
The text was updated successfully, but these errors were encountered:
…p control directives (azjezz)
This PR was merged into the 5.1-dev branch.
Discussion
----------
[HttpFoundation] Add support for all core response http control directives
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Tickets | Fix#35720
| License | MIT
| Doc PR | N/A
Add support for all core cache-control directives
see : https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control
Commits
-------
011cd38 [HttpFoundation] Add support for all core http control directives
Description
While using Symphony in Laravel, we set response headers for GET requests through a middleware
cache.headers
If I add
no_cache
then it breaks the response, and I get the errorResponse does not support the following options: "no-cache".
The error led me to following block of code in
Symfony\Component\HttpFoundation
adding
no_cache
support will be really helpful.The text was updated successfully, but these errors were encountered: