Shopify fix guide
HSTS max-age Too Short on Shopify
HSTS header is present but max-age is under 1 year. Browsers will not cache the HTTPS preference long enough for reliable protection.
Issue ID: SEC-HSTS-002Severity: minorEffort: S
Why this matters
HSTS header is present but max-age is under 1 year. Browsers will not cache the HTTPS preference long enough for reliable protection. This affects browser trust signals and whether visitors feel safe submitting contact details.
Shopify fix path
How to fix this on Shopify
Use theme settings, page settings, or theme code.
- 1Find the source of the issue in Shopify admin.
- 2Apply the change.
- 3Preview and publish.
After you fix it
- ✓Check that max-age is at least 31536000
Same fix, other platforms
Fix hsts max-age too short on a different CMS
Other fixes
More Shopify fixes
Parents
Related guides
See every Shopify issue on your site
This is one issue of many the full audit checks. Run a free scan to see what else might be holding your site back.
Run Free Audit