Ajax get request with useless parameter
问题 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? 回答1: In short, set cache to true in your $.ajax call's options. jQuery adds that for cache breaking. There is an option in jQuery to turn that off: (from http://api.jquery.com