Reputation: 5010
In my code, I have got request type HEAD
but I actually don't know details about it. The code is like this:
function fileExists(pUrl)
{
let fileExist = false;
$.ajax({
url:pUrl,
type:'HEAD',
async:false,
success: function()
{
//file exists
fileExist = true;
},
error: function()
{
//file not exists
fileExist = false;
}
});
return fileExist;
}
Can anybody tell me about the HEAD
? thanks in advance
Upvotes: 3
Views: 3247