Also note that setting the "cache:false" option will create that additional parameter with a random value. That way the browser will not find a cache with the same resource name and always requests a new page.
On Oct 2, 5:42 am, acedanger <acedange...@gmail.com> wrote: > I believe it was because I originally had "global: false". Once I > changed that, the URL formatted as I expected it to. > > On Oct 2, 11:31 am, acedanger <acedange...@gmail.com> wrote: > > > Here is my code: > > > $.ajax({ > > url: lUrl, > > global: true, > > async: false, > > data:{"none":"none"}, > > type: "GET", > > dataType: "text", > > success: function(result){ > > alert("result is "+result); > > parsedJSON = JSON.parse(data); > > }, > > error: function (XMLHttpRequest, textStatus, errorThrown) { > > alert(textStatus); > > } > > > }); > > > All of my urls that are sent to the server have "?_=(some random > > number)". In the specific case of the above code, the generated URL is > > "http://url/script.php?_=1254497109001&none=none". How can I prevent > > this from happening? Why is it happening? > >