HSTS on Cloudflare Pages: Common Mistakes and Fixes

HSTS on Cloudflare Pages looks easy right up until it isn’t. You add a Strict-Transport-Security header, verify it in the browser, and move on. Then a week later you realize preview URLs behave differently, your apex domain redirects through a weird chain, or someone turned on preload without thinking about subdomains that still speak plain HTTP. I’ve seen this pattern a lot: HSTS gets treated like a checkbox. It’s not. On Cloudflare Pages, it’s simple to enable, but easy to misconfigure in ways that are annoying at best and production-breaking at worst. ...

June 15, 2026 · 7 min · headertest.com

HSTS on Caddy: a real-world before and after

I’ve seen plenty of teams assume Caddy “already handles HTTPS” so they can forget about HSTS. That half-truth causes sloppy rollouts. Caddy does make TLS easy. It gets certificates, renews them, redirects HTTP to HTTPS in many setups, and generally removes a lot of web server pain. But HSTS is a separate browser policy, and if you don’t configure it deliberately, users can still make that very first insecure HTTP request. ...

June 14, 2026 · 7 min · headertest.com

HSTS for WordPress: Pros, Cons, and Safer Rollouts

If you run a WordPress site over HTTPS, HSTS is one of those headers that feels like a no-brainer right up until it locks you into a bad decision. I like HSTS. I use it on production sites. But I don’t recommend flipping it on casually, especially on WordPress installs with old plugins, mixed-content debt, weird subdomains, or a hosting setup you don’t fully control. This guide compares the upside and downside of HSTS for WordPress, and where it makes sense versus where it can bite you. ...

June 10, 2026 · 7 min · headertest.com

HSTS for Hono: copy-paste setups that actually work

HTTP Strict Transport Security, or HSTS, is one of those headers that’s boring right up until it saves you from a nasty downgrade attack. If you run a Hono app over HTTPS, you should probably send it. The browser sees the header once over a secure connection, remembers it, and refuses to talk to your site over plain HTTP for the configured period. That cuts off a whole class of “strip HTTPS and hope the user doesn’t notice” nonsense. ...

June 9, 2026 · 7 min · headertest.com

HSTS for Netlify Deployments

HTTP Strict Transport Security, or HSTS, is one of those headers that looks trivial until you ship the wrong value and lock yourself into a bad decision for months. If you deploy on Netlify, adding HSTS is easy. Adding it safely takes a bit more thought. This guide covers the practical side: what HSTS actually does, how to configure it on Netlify, how to avoid common mistakes, and how I’d roll it out on a real production site. ...

June 8, 2026 · 7 min · headertest.com

HSTS in Azure and GCP: Practical Setup Guide

HTTP Strict Transport Security is one of those headers that looks trivial until you ship it wrong and lock users into a bad config for months. If you run apps on Azure or GCP, the main challenge usually is not the header itself. It’s figuring out where to set it so it’s applied consistently, survives redirects, and doesn’t get stripped by a proxy, CDN, or app server. This guide is the practical version: what to send, where to send it, and copy-paste examples. ...

June 7, 2026 · 7 min · headertest.com

How HSTS Affects SEO: A Practical Reference Guide

How HSTS Affects SEO HSTS does not directly improve rankings. That’s the short version. Google is not handing out bonus points because you send Strict-Transport-Security. But HSTS absolutely affects the things that do impact SEO: crawl efficiency, duplicate URL handling, redirect behavior, mixed protocol issues, and how cleanly your site behaves during HTTPS migrations. If you run a production site, HSTS is less about “SEO optimization” and more about removing protocol ambiguity. Search engines like predictable sites. HSTS helps force that predictability. ...

June 6, 2026 · 6 min · headertest.com

HSTS for GitHub Pages: What Actually Works

GitHub Pages makes HTTPS easy. HSTS is where people usually get tripped up. The short version: if you use the default *.github.io domain, GitHub handles HTTPS and HSTS for you. If you use a custom domain, you need to understand what GitHub controls, what your DNS provider controls, and one annoying limitation: you generally can’t arbitrarily add or tune response headers on GitHub Pages itself. That limitation matters because HSTS is just an HTTP response header: ...

June 2, 2026 · 7 min · headertest.com

HSTS Report-Only Mode: Practical Reference and Examples

HSTS report-only mode sounds like something browsers should support. They don’t. That’s the first thing worth clearing up, because a lot of developers go looking for a Strict-Transport-Security-Report-Only header and assume they just haven’t found the right syntax yet. There is no standardized HSTS report-only header implemented by browsers in the way Content-Security-Policy-Report-Only works. So if you’re trying to safely “test” HSTS before enforcing it, the real answer is a mix of: ...

May 30, 2026 · 7 min · headertest.com

Common HSTS Mistakes: A Real-World Before/After Case Study

HSTS looks deceptively simple. One header, one line, done. That’s exactly why teams get it wrong. I’ve seen production rollouts where HSTS was added in a hurry, tested once in Chrome, and then forgotten until something broke: login subdomains stopped working, staging got pinned to HTTPS, or preload got enabled before the company actually controlled every edge of its domain. The header itself is easy. The operational blast radius is where people mess up. ...

May 29, 2026 · 7 min · headertest.com