A Shopify store owner asked whether three SEO/security audit findings can be changed: extending the platform-set HSTS header from about 91 days to 1 year, and adding missing Referrer-Policy and Permissions-Policy HTTP headers.
The consensus is that these are server/edge-level headers controlled by Shopify, not by the theme, so they cannot be changed through theme.liquid or theme settings. No supported method was identified to extend HSTS max-age, add includeSubDomains, join the HSTS preload list, or inject these headers into actual server responses.
Suggested partial workarounds focused on meta tags, especially adding <meta name="referrer" content="strict-origin-when-cross-origin"> in the theme head. This may influence browser behavior, but scanners may still flag the missing HTTP header. A Permissions-Policy meta approach was mentioned as unreliable due to limited browser support.
Several replies questioned the SEO/AI-crawler importance of these headers, noting that AI crawler access is more affected by items like robots.txt, llms.txt, and structured data. The issue remains a Shopify platform limitation with no full resolution.
I’ve been running an SEO+security audit (optimizing the site for AI crawlers) and found 3 response header items that are controlled by the platform rather than theme settings:
Strict-Transport-Security: max-age=7889238 is about 91 days. The widely recommended value is max-age=31536000; includeSubDomains (1 year), which is also the minimum HSTS preload lists expect
No Referrer-Policy header at all
No Permissions-Policy header at all
As far as I can tell, none of these can be set from theme.liquid or anywhere in the theme (Shopify manages the response headers).
My questions for the community:
Has anyone managed to get the HSTS max-age extended on their store?
Is there any supported way to add Referrer-Policy and Permissions-Policy headers?
Shopify manages those headers at the edge, so there’s no theme-level way to change them. I haven’t seen Plus stores get custom values either - you can ask support but the answer is usually no.
Two partial workarounds:
Referrer-Policy: drop <meta name="referrer" content="strict-origin-when-cross-origin"> in theme.liquid head. Carries most of the same behavior even if scanners flag the missing header.
Permissions-Policy: there’s a <meta http-equiv="Permissions-Policy"> form floating around, but browser support is spotty (Chromium only, partial directives). I wouldn’t rely on it as a real fix.
Side note on the AI crawler angle - GPTBot, PerplexityBot, ClaudeBot etc don’t actually gate on Permissions-Policy or Referrer-Policy. What moves AIO is robots.txt allow lines, an llms.txt file at the root, and JSON-LD on key pages. The headers mostly help with browser-side security posture, not crawler eligibility.
You probably used the claude-seo skill here. It shows the same thing for my clients, too.
However, we first need to clarify why you’re pointing this out. If those three items weren’t included in the corresponding skill, you probably wouldn’t even notice. Have you manually checked what the current status is? Have you looked into why Shopify specifies a max-age of only 90 days instead of a year? And most importantly: Do you know why the headers are set the way they are?
The answer is probably “no” to all of these. Here, we need to take a look at the infrastructure. Shopify is a SaaS company. What happens if we specify a higher max-age in the HSTS settings? Your store (and all other stores) would become inaccessible. A quick switch to a different routing would only be possible after a year. That’s far too long—even 90 days is already a significant amount of time that’s technically and infrastructure-wise justifiable. So just ignore the HSTS part.
You can also safely ignore the headers. At Shopify, hundreds of engineers are working to keep the platform secure. They’ll also check these basic settings from time to time. Their priority here is security, not an SEO skill that expects predefined answers.
You actually cannot change these headers. Shopify controls the servers, so editing your theme code will not work for server-level settings.
Here is how it breaks down:
HSTS: You are stuck with Shopify’s 91 days. There is no way to extend it to a year or get on the official preload list.
Referrer & Permissions Policies: You cannot inject these into the server response, but you can use a workaround. Drop a meta tag into your theme.liquid header. For example: <meta name="referrer" content="strict-origin-when-cross-origin">. Modern browsers and AI crawlers read this just fine.
It is a platform limit we all have to live with, but the meta tag workaround should fix your audit warnings.
Those headers are not controlled by theme so you cannot extend it through theme settings. I actually take a look and also ask AI and the recommended way is to add a meta tag in theme.liquid:
This covers a lot of browser behavior, but security scanners may still flag the missing HTTP header. Hope you can find a solution and share here for others to learn as well