Linked Questions

Popular Questions

fileExists() vs CFHTTP checking remote files

Asked by At

Is the fileExists remote file checking uses cfhttp head?

I'm concerned on the speed of fileExists over CFHTTP when checking remote files

<cfset imgExist = FileExists('https://qph.fs.quoracdn.net/main-qimg-e8b07145ae25974d4902168818241326.webp') >
<cfdump var="#imgExist#">
-- Returns Yes --

Is the FileExists function uses CFHTTP head?

<cfhttp method="head" url="someimage" resolveurl="no" throwonerror="no" timeout="2" />

What is the advantage of FileExists over CFHTTP when checking if the remote file exists?

Also is FileExists better than CFHTTP in terms of server load?

Related Questions