Add one more parameter when running ajax
Add one more parameter when running ajax
sistelnet
Posts: 1Questions: 0Answers: 0
Good morning I have the following problem in the ajax url I use the following,
ajax: {
url: 'http://api/example',
data: {size: 1000},
dataSrc: 'data'
},
but when it is executed, it adds a parameter that I do not put and in the network I get this
http://api/example?size=1000&_=1596784035094
and therefore it is not bringing me the data by that parameter that is added. How can I remove it?
This discussion has been closed.
Replies
That is the jQuery anti-cache parameter. There are lots of other discussions about that parameter - e.g.: https://datatables.net/forums/discussion/comment/38113/#Comment_38113 .
Allan