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('') >
<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