You can upload your data via Ajax in the first place.
$(document).ready(function(){
$.get("your_ajax_url");
});
Then, when you click the back button, the ajax call is repeated, and on the server side you send an HTTP response with the Etag cache or headers set correctly.
source
share