Skip to content

fix(hsts): only award preload bonus when includeSubDomains is set and max-age meets the 2-year minimum#112

Merged
dmchaledev merged 1 commit into
mainfrom
fix/hsts-preload-requirements
Jul 19, 2026
Merged

fix(hsts): only award preload bonus when includeSubDomains is set and max-age meets the 2-year minimum#112
dmchaledev merged 1 commit into
mainfrom
fix/hsts-preload-requirements

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

Combines #81 (gate the preload bonus on includeSubDomains being present) and #87 (gate it on max-age >= 63072000, the hstspreload.org 2-year minimum) — hstspreload.org actually requires both conditions, so applying either fix alone would leave the other gap open. The two PRs' diffs both rewrote the same single line, so they couldn't be merged sequentially without a manual reconciliation.

Verified: npm run typecheck, npm test (138/138, including both PRs' original test cases plus the combined case), npm run build all pass. Also updated the pre-existing A+ at 90% grade-boundary fixture, which used a max-age below the new 2-year threshold and would otherwise have silently dropped to an A.

Closes #81, closes #87.


Generated by Claude Code

… max-age meets the 2-year hstspreload.org minimum

Combines #81 (gate on includeSubDomains) and #87 (gate on max-age >= 63072000)
— hstspreload.org actually requires both, so the correct fix is their
intersection. Applying either alone would leave the other gap open.
@dmchaledev
dmchaledev merged commit 3632e90 into main Jul 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants