Sunday, November 24, 2019

My asynchronous ReST calls from my vanilla JavaScript are getting cached in IE11!

Try shoving something like this onto the end of the URL to fix this:

var url = '/api/play?hand=' + hand + "&nocache=" + new Date();

 
 

Do you see how the timestamp will randomize the URL and make each call unique?

No comments:

Post a Comment