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 setHeader () You can use:

  & lt; Cfscript & gt; Pc = getPageContext (). GetResponse (); Pc.setHeader ("Variation", "User-Agent"); & Lt; / Cfscript & gt;   

This functionality is not very well documented in the official cold document, but lets you tell all the people you want to know.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -