-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Can we set RedirectResponse meta refresh to 0? #23524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What's the goal? AFAIK this has never been an issue to anyone, also note Reading http://www.otsukare.info/2015/03/26/refresh-http-header the |
Refresh is pretty much universally supported and doesn't rely on javascript, so it's a good way to push a redirect through if your headers are already sent. This wouldn't affect symfony per-se (since any modern framework isn't going to echo in the controller), but I know legacy projects that could benefit from the fallback. |
well.. it doesnt hurt probably :) |
Well if no-one knows a reason to leave it at 1 I'll submit a PR to change it to 0 |
👍 for changing to |
…ponse content (jnvsor) This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #23526). Discussion ---------- [HttpFoundation] Set meta refresh time to 0 in RedirectResponse content | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23524 | License | MIT Set meta refresh time to 0 in RedirectResponse content Commits ------- 5508a00 [HttpFoundation] Set meta refresh time to 0 in RedirectResponse content
In
HttpFoundation\RedirectResponse
there's a fallback html body with a meta refresh set to 1 second. Can we change this to 0? As far as I'm aware all browsers support a meta refresh of 0.The text was updated successfully, but these errors were encountered: