5

When the gallery photo uploads, the thumbnail image gets displayed in model(using jquery and php with ajax) after updating the old image to newer one. But next time on opening the model it shows the older one, after refresh the page only it shows the newer image. Please any one give me the solution for my problem? Thanks in advance.

here is my code -

$.ajax({ cache:false, })

 $.ajax({
   url: 'model_appmaster.php',
   type: 'POST',
   async: true,
   data: {},    
   dataType: 'html',
   cache:false,
})

cache is not clearing from the below code -

$.ajax({
   cache:false,
})
Tal
  • 869
  • 13
  • 21
Dilli
  • 89
  • 4

1 Answers1

0

you can try using JavaScript window.location.replace() function:

<meta http-equiv="refresh" content="0; http://www.redirecturl.com/" />
<meta http-equiv="pragma" content="no-cache">
<script type="text/javascript">
window.location.replace('URL');
</script>`
Mohit Kumar
  • 932
  • 2
  • 7
  • 18
  • I need for ajax call cache clear. There is any solution please ping me. – Dilli Aug 29 '19 at 06:16
  • – Dilli Sep 03 '19 at 10:17