If you are using ajax for getting some data and on page refresh it does not reflect that same data as ajax give.

You are getting this issue due to old URL the use “pushState” that will change your site URL from browser without any redirection.

<?php
$agaib = get_site_url().’/delivery-location/?latitude=’.$latitude.’&longitude=’.$longitude.’&pa=’.$offset.’&cat=’;
?>
window.history.pushState(‘cat=’, ‘Title’, “<?php echo $agaib; ?>”+ loc );

 

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.