div.load('test.txt');
Result - lorem ipsum
- correct
Now, after I change the content to dolor sit
div.load('test.txt');
result - lorem ipsum
- incorrect
Obviously, there is a problem with caching content.
How does one solve this?
div.load('test.txt');
Result - lorem ipsum
- correct
Now, after I change the content to dolor sit
div.load('test.txt');
result - lorem ipsum
- incorrect
Obviously, there is a problem with caching content.
How does one solve this?
You can add a random query string each time, so the content is not cached. The current date should be unique enough for this purpose.
div.load('test.txt?query=' + Date.now());