If your browser (firefox) doesnt remember scroll position of last page when using back button, you should read these pages:
Shortly:
Some php installs defaults to set session.cache_limiter to nocache and this sets header Cache-Control: no-store, which causes firefox to not remember scroll position.
Fix is easy, just add session.cache_limiter = private to php.ini
Warning! This fix might break DokuWiki behavior for IE users! That is, often old cached pages will be shown instead of the updated ones. Therefore, Fx users should probably install Restore Scroll Position extension (add-on) from http://www.gozer.org/mozilla/extensions/ instead.
So, my question is : “why Opera does ???”
Alternatively, you can edit dokuwiki's inc/action.php to include the desired Cache-Control header automatically, instead of modifying the “universal” settings in php.ini.
Since I was migrating from mediawiki and still had my default mediawiki install (which does not suffer from this scrollbar issue in firefox), I noticed that mediawiki outputted the following Cache-Control header:
Cache-Control: private, must-revalidate, max-age=0
I added this identical header to the $headers[] array in inc/actions.php, right after the Content-Type: header on line 122:
$headers[] = 'Cache-Control: private, must-revalidate, max-age=0';
This did the trick for me.
2008-04-11: And for me too – so why is it not included in the core? Are there any side effects?
The current wikipedia has an additional option: s-maxage=0