Scroll position restore when hit back botton is due to caching ?enabled

Hi can I achieve caching or the same functionality like https://``/l/new-in/ - product listing page. If someone clicks on any product and goes to the product details page - let the user hit back from the browser - he will be back at the same spot where he left- means scroll position is restored. It seems like full page caching is there so when the user hits back, no request is passed to the origin server and the browser caching works. Some one told me if I apply caching by configuring nginx http proxy cache, i will be able to achieve the same behaviour like the example I gave above.