D
D
Doxi2018-02-10 16:06:51
JavaScript
Doxi, 2018-02-10 16:06:51

TimeStamp in getjson request?

I make a request via $.getJSON and the response is null because js automatically adds &_=1518267865683(TimeStamp) to the end of the request.
How to turn it off?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cube, 2018-02-10
@liveunit

In general, it is easy to google.

$.ajaxSetup({
           'cache':false
});

But I doubt that you have null because of the additional timestamp parameter, I think that's not the point.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question