/*
  # This is a security product; the headers are part of the claim.
  # Pages serves these on every response — no server config to drift.
  Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  X-Content-Type-Options: nosniff
  Referrer-Policy: strict-origin-when-cross-origin
  X-Frame-Options: DENY
  Permissions-Policy: geolocation=(), microphone=(), camera=(), interest-cohort=()
  # No page of ours is ever opened by, or opens, another origin's window.
  Cross-Origin-Opener-Policy: same-origin
  # Self-hosted fonts and no third-party anything, so the CSP can be strict.
  # No inline script and no inline style survive the build (the page script is
  # a real file in public/, and astro.config pins inlineStylesheets:'never'), so
  # this needs no 'unsafe-inline' anywhere. Verified against dist/, not assumed —
  # an inlined script under script-src 'self' fails SILENTLY: the page renders
  # and only the behaviour goes missing.
  Content-Security-Policy: default-src 'none'; img-src 'self' data:; style-src 'self'; font-src 'self'; script-src 'self'; connect-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'

/.well-known/security.txt
  # RFC 9116 is explicit: "It MUST have a Content-Type of 'text/plain' with the
  # default charset parameter set to 'utf-8'." Pinned rather than left to
  # extension guessing, because a wrong type makes the file non-conforming while
  # still looking fine in a browser.
  Content-Type: text/plain; charset=utf-8

/api/*
  # The JSON API is public, read-only and carries no credentials, so any
  # origin may read it from a browser — a page checking a server before its
  # user installs it, an agent running in one. No Allow-Credentials, ever:
  # nothing here is behind a cookie, and `*` with credentials is refused by
  # browsers anyway.
  Access-Control-Allow-Origin: *

/feed/*
  # Atom, not the application/xml an .xml extension is served as by default.
  # A static build drops headers set in an endpoint's Response, so the type is
  # pinned here, where Workers reads it.
  Content-Type: application/atom+xml; charset=utf-8
  Cache-Control: public, max-age=3600
  # Public, like the API: a browser-based feed reader may fetch it.
  Access-Control-Allow-Origin: *

/badge/*
  # `06` §2: the badge follows the nightly rescan, so it may be cached for an
  # hour and no longer. Type pinned rather than inferred, as above.
  Content-Type: image/svg+xml; charset=utf-8
  Cache-Control: public, max-age=3600
  # A badge is MEANT to be embedded in other sites' READMEs: say so, so a
  # page that requires Cross-Origin-Embedder-Policy can still show it.
  Cross-Origin-Resource-Policy: cross-origin

/_astro/*
  # Astro fingerprints these filenames, so they are safe to cache forever.
  Cache-Control: public, max-age=31536000, immutable
