Forum Discussion
Arie
Nov 01, 2011Altostratus
Instead of HTTP::redirect (which generates a 302 - Temporary Redirect) you may want to consider:
HTTP::respond 301 Location "https://[HTTP::host][HTTP:uri]"
That way the client will cache the redirect and save you a few cycles.
Also, keep in mind that you can issue only one HTTP::respond/HTTP::redirect; you'll encounter a nasty "connection reset" if multiple respond/redirects are issued.