The "security.strict-transport-security" option does not behave as documented. When this option is turned off, Phabricator sends a Strict-Transport-Security header with a max-age of 0:
Strict-Transport-Security: max-age=0; includeSubdomains; preload
When turned on, it simply toggles the max-age:
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
This doesn't match the option documentation, which says: "Enable HTTP Strict Transport Security (HSTS)." Clicking on it, you see "HTTP Strict Transport Security (HSTS) sends a header..."
Therefore, if the HSTS option is turned off, you would expect that header to *not* be sent...because turning it on "sends a header".
The description of the option (both in the short-text and the longer description) should make it clear that the header is *always* sent and the option simply controls the set max-age.