It’s the same in my case, and I would guess that, just like me, you aren’t using Apache, so the .htaccess
file simply doesn’t have any effect.
Since all other headers are also sent by PHP I would classify this as a bug. Furthermore, looking at the code, I see that the function which instructs WordPress to add this HTTP header to the output is only called when the settings for this particular header are updated, which actually has no effect since the update action produces a redirect response with no custom headers whatsoever, so it’s definitely a bug.
I also noticed that this plugin adds two <IfModule mod_headers.c>
blocks in the file instead of just one: the first one only contains an instruction to add the HSTS header, and the other contains instructions for all other headers. Furthermore, the HSTS block gains an extra blank line each time these settings are saved. It would be nicer if only one such block was added and the unnecessary blank lines were not there.
-
This reply was modified 1 year, 6 months ago by Rimas.