[#1872] fix(session): restore session, flash before new request even for serveStatic call