Skip to content

Add HSTS to production documentation responses #10

Description

@yhay81

Outcome

Serve an explicit HTTP Strict Transport Security policy from every production
documentation asset so returning clients cannot be downgraded to HTTP.

The dedicated HTTP Worker already redirects to HTTPS, but the HTTPS static
asset responses do not currently include Strict-Transport-Security.

Acceptance criteria

  • Generate Strict-Transport-Security: max-age=31536000; includeSubDomains
    in the Cloudflare Static Assets _headers file.
  • Regression-test the exact directive alongside the existing CSP,
    nosniff, frame, cross-origin, referrer, and permissions policies.
  • Pass the strict Zensical build, generated-site validation, dependency
    audit, workflow audit, and external-link checks.
  • Deploy from the exact reviewed main commit.
  • Verify HSTS on both the custom domain and Workers.dev fallback while
    preserving the HTTP-to-HTTPS redirect.

Boundary

Do not add the preload directive or submit the domain to the browser preload
list in this change. That is a longer-lived operational commitment and should
remain a separate explicit decision.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions