Fix cache issue

There was an issue when navigating throw different templates.
The `get_request_template` value was cached and never updated
The same for `request_cookies`.
It fixes navigation between pages ```/tmpl2/page[1,2]``` and ```/tmp1/page[1,2,3]``` from the testsuite