JavaScript question - how does dataTables generate _=1359101216769
JavaScript question - how does dataTables generate _=1359101216769
Hello,
a very low priority, pure curiosity question :-)
How does dataTables generate the random string of numbers to prevent caching, when fetching JSON data:
[quote]
91.209.51.140 - - [25/Jan/2013:09:06:59 +0100] "GET /cards-json.php?id=VK72883921&_=1359101216769 HTTP/1.1" 200 255254
[/quote]
Which JavaScript function is it? I failed to find that spot in the jquery.dataTables.js
Thanks
Alex
a very low priority, pure curiosity question :-)
How does dataTables generate the random string of numbers to prevent caching, when fetching JSON data:
[quote]
91.209.51.140 - - [25/Jan/2013:09:06:59 +0100] "GET /cards-json.php?id=VK72883921&_=1359101216769 HTTP/1.1" 200 255254
[/quote]
Which JavaScript function is it? I failed to find that spot in the jquery.dataTables.js
Thanks
Alex
This discussion has been closed.
Replies
http://api.jquery.com/jQuery.ajax (check the 'cache' option).
Allan
[code]$.ajaxSetup({ cache: false });[/code]
to my own script now and have the same.