Closed nvie closed 10 years ago
Thanks!
Hmm, does it hurt to send them over regular connections?
Well, I suppose it doesn't hurt, no. But from the specs:
"Client implementations must not respect STS headers sent over non-HTTPS responses […]"
So it might be confusing to send them over non-secure connections. This is a bit more restricting, adding the header only to connections where it actually makes sense.
I'd actually go even further and apply the same criteria (e.g. non-debug mode) that the redirection code uses.
Man, I have no idea why I didn't merge this.
LOL, :sparkles: :cake: :sparkles: anyway :)
This fixes #5.