added support for preserving position after refresh; also re-enabled appcache