Talk to me about the pros and cons of doing http &...
# cfml-general
d
Talk to me about the pros and cons of doing http > http redirects in code vs in IIS. IIS seems like fewer in-house moving parts, and applies to all file types, for better and worse.
b
I'd say it depends on the redirect, lol
If you need to redirect based on • application state • DB values • session values then you're stuck with CF. If you just have a general redirect like • http -> https • site.com -> www.site.com then I'd totally do that in IIS to keep unnecessary load off the CF server.
@Dave Merrill
r
I agree with Brad unless you want to capture site redirect data so you can nag users who are lazy updating bookmarks.
a
b
Yes, always do HTST headers from the web server as well as the initial HTTP -> HTTPS redirect as well
d
Pretty much what I thought, there's no state or other variables involved, do it in IIS. We're already doing HTST headers too.