I’m trying to execute next:
$.ajax({
type: 'GET',
url: 'http://127.0.0.1:6789/dir',
data: "",
success: function(data) { /*do something*/ },
dataType: 'html'
});
But when it executes, my server receives something like below:
http://127.0.0.1:6789/dir?_32567871112
I don’t want to pass any parameters. What do I wrong?
In short, set
cachetotruein your$.ajaxcall’s options.jQuery adds that for cache breaking.
There is an option in jQuery to turn that off: (from http://api.jquery.com/jQuery.ajax/)
Example with
cacheset totrue: