I’m using this code as the starting point to an overhaul of our JavaScript framework:
$("#get").click(function(){
$("#result").html(ajax_load);
$.get(
"http://www.google.com",
{},
function(responseText){
$("#result").html(responseText);
},
"html"
);
});
But when the request is made it includes a variable within the URL that I am unfarmiliar with, here is what Firebug says it’s requesting:
http://www.google.com/?_=1268993359215
How do I get rid of this, when we target our internal scripts it’s firing a 404 error 🙁
Cheers!
That parameter is used to force browser not to use cache.
You can not make
$.getwork without it explicitly, but you can use$.ajaxinstead:Note the extra parameter
cache: true. More on$.ajaxhere: http://api.jquery.com/jQuery.ajax/