Cache issues (I think) - Forum

Forum Navigation
You need to log in to create posts and topics.

Cache issues (I think)

Hi to everybody,
I have a web application which, among other things, reads a csv file from a container on cloud, and then updates a list displayed in a neotable object.
This csv file is read with neoAjaxLoad and the procedure is called every N minutes or by clicking on a button.
The csv file on the container is constantly updated by a server which modifies it by adding lines.
What happens very often, even though the csv file is modified by the server, the neoAjaxLoad command reads the cached version of the file.
I understand this because by clearing the cache (not with CTRL+F5 because that doesn't work either but by clearing the cache manually in Chrome) the csv file is read correctly.

Has anyone run into similar problems?
Do you have any suggestions?

Greetings
Rocco

We would like something like this in neoAjaxLoad as well
$.ajax({url: "myurl", success: myCallback, cache: false});
(https://api.jquery.com/jquery.ajax/) where it is possible to force the cache not to be loaded.
Or should I use jQuery's $.ajax directly.

@roccocogliano the trick is to add a random parameter to your URL for each call, for example:

https://myrul.com/myfile.csv?param=23

instead of just:

https://myrul.com/myfile.csv

I hope it helps

roccocogliano has reacted to this post.
roccocogliano

Yessss!!!

Thank you so much @luishp

luishp has reacted to this post.
luishp