Im struggling with Ajax Deep linking and wonder if is possible to make an Ajax call when user click on Browser refresh button.
I tried to use beforeunload
It works but still make a request to the server after the ajax call Is there a way to prevent the request to the server ?
$(window).on('beforeunload',function(e){
//ajax call here.
});