Nginx.conf headers ignored if HSTS enabled

Debian 12
Hestia 1.8.1

Hi,

If HSTS is enabled for a domain then any headers specified in /etc/nginx/nginx.conf are ignored. I noticed this after also enabling FastCGI cache as the X-FastCGI-Cache header wasn’t appearing in the header even though the caching was working.

Thanks,
Matt