Description
Steps to reproduce
Use a web browser than caches permanent redirects (eg Chrome)
- page a redirects to page b
- One visits a in their web browser and correctly ends up at b
- page a is changed to redirect to c
- One visits a in their web browser and incorrectly ends up at b because the redirect was considered permanent and cached (eg by Chrome)
Example
Component selection
Details
MoinMoin Version |
1.93 |
OS and Version |
|
Python Version |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Page.py - request.http_redirect(redirect_url, code=301) -> request.http_redirect(redirect_url, code=302)
Discussion
I realise that some perceive that redirects should indicate that the page has permanently moved eg http://moinmo.in/MoinMoinBugs/RedirectShouldUse301. However given the nature of wikis and the ability to modify redirects I think that ensuring the correct behaviour on updates (eg no caching) is more important.
Plan
- Priority:
- Assigned to:
Status: fixed by http://hg.moinmo.in/moin/1.9/rev/748a41f12915