Feature #84481
closedadd missing "HTTP/1.1 308 Permanent Redirect" constant to HttpUtility
100%
Description
In \TYPO3\CMS\Core\Utility\HttpUtility
there are various HTTP status-headers defined as class-constants. This includes those for HTTP-redirects. I'm missing the "HTTP/1.1 308 Permanent Redirect" header here. Therefore I'll prepare a PR for TYPO3.CMS' master-branch to include this header as a class constant in the class mentioned above.
Research Information¶
The main difference to the well known “HTTP/1.1 301 Moved Permanently” header is, that 308 forces the client (aka Browser) to follow the redirect using the same protocol as the initial request. So for example with 308 a GET request must be followed with a GET request and a POST request must be followed with a POST request to the new location. With 301 status a POST request will be followed using a GET request to the new location.
The permanent redirect is defined here: According to Mozilla's research (as well as my biased experience) it is supported by all browsers. A compact and profound description of the HTTP redirect-related headers, can be found on Stackoverflow.My Conclusion¶
Adding this header to the utility will not harm existing installations or anything at al.
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56364
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56364
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/56367
Updated by Stephan Jorek over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 332b65bde6a825bc1c5b9cd7f3fed8319e136529.
Updated by Frank Nägler over 6 years ago
- Related to Task #84626: Streamline HTTP Response codes added
Updated by Mathias Brodala over 3 years ago
- Related to Bug #94922: Missing HTTP status 308 for redirects added