avoid ajax cache
Some framework/libraries cache the ajax queries (even json), leading to strange behaviours.
To avoid caching issues, simply add a fake/unique parameter to your url
.getJSON('http://....../mypage' +'?_='+jQuery.now(), ....
If you don't use jquery, just add a javascript timestamp or a unique request id.
Written by Olivier Sallou
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ajax
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#