Thanks to Tim Jackson for bringing this one to my attention. Since I’ve worked in Coldfusion I’ve always used code similar to this:
<cfset variables.protocol = iif(CGI.SERVER_PORT EQ 443, de("https"), de("http"))>
Tim advised me that he had found a new way to avoid this without using server-side code:
An information technology professional with twenty three years experience in systems administration, computer programming, requirements gathering, customer service, and technical support.