Question:
What exactly does Ajax code do when I write:
cache: false,
in an ajax request?
Answer:
When we use the request many times, and it has the same return, the browser saves the cache thus making it impossible to have an updated response and we end up seeing the same result, putting cache: false
prevents the browser from saving the cache always keeping updates, another tip and whenever you are developing you update the page with Ctrl + F5
.