'contrib.redirects' documentation doesn't say whether it's a 301 or 302
In https://docs.djangoproject.com/en/dev/ref/contrib/redirects/ it should be said that the redirects are permanent (i.e. 301), not 302. Although one could guess that's the reasonable behavior, better make it explicit. On the other hand, at the end of the page there is a mention of how to change the response classes used, and that the default value of RedirectFallbackMiddleware.response_redirect_class
is HttpResponsePermanentRedirect
, so it could be inferred that the default behavior is return a 301 but again, not explicit enough.
Change History
(4)
Triage Stage: |
Unreviewed → Accepted
|
Has patch: |
set
|
Owner: |
changed from nobody to Bouke Haarsma
|
Status: |
new → assigned
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I agree, this should be mentionned more prominently (maybe even in the first paragraph).