Closed demifiend9 closed 7 months ago
Caddy uses exact path matchers.
header / Strict-Transport-Security "max-age=63072000" would only match example.com/ and will not send header in any other url like example.com/path/
header / Strict-Transport-Security "max-age=63072000"
example.com/
example.com/path/
Removing / from the syntax or using * will enable the header to be sent on all urls:
/
*
header Strict-Transport-Security "max-age=63072000" or header * Strict-Transport-Security "max-age=63072000", both are same.
header Strict-Transport-Security "max-age=63072000"
header * Strict-Transport-Security "max-age=63072000"
Will land via #153
Fixed in #153
@demifiend9 Thanks for reporting this!
Caddy uses exact path matchers.
header / Strict-Transport-Security "max-age=63072000"
would only matchexample.com/
and will not send header in any other url likeexample.com/path/
Removing
/
from the syntax or using*
will enable the header to be sent on all urls:header Strict-Transport-Security "max-age=63072000"
orheader * Strict-Transport-Security "max-age=63072000"
, both are same.