iis 7 - How to set vary http header in page level in coldfusion -
I designed a mobile-friendly application by locating mobile users on the fly and serving a different layout in cold fusion Have done Google should dynamically serve different HTML at the same URL 'I should change the server http header as "separate HTTP header" Now, let me type the Layout To set up different http headers on the basis of, if it is mobile, then I have to set the difference: User-agent How can it set through the cold at the page level? Can I get it through the cold, if you can not help me in setting up the IIS? Thanks You can set This functionality is not very well documented in the official cold document, but lets you tell all the people you want to know. setHeader () You can use:
& lt; Cfscript & gt; Pc = getPageContext (). GetResponse (); Pc.setHeader ("Variation", "User-Agent"); & Lt; / Cfscript & gt;
Comments
Post a Comment