Project is an H5 page, nested in Mini Program
A page is a list loaded at the bottom of the scroll
B page is a detail page
When the A page clicks on an item, use location.href ="/ b"to jump to page B
(because when Mini Program uses the forwarding feature, he can only use location.href to get the shared content)
so far there is no problem.
there is a requirement below that the B page clicks the back button to return to the location you browsed before page A. Then there is a problem. Page B uses router.back (- 1), jumping to page An is a new request, and keep-alive is useless. I would like to ask how this situation can read the cache of the A page.