Expand description
Single-source HTTP security and caching headers for arks serve Web UI responses
(governed by web-platform-baseline.sot.md WP-HDR-1..4 and WP-CACHE-1).
Git Smart HTTP (info/refs, git-upload-pack, git-receive-pack), Git LFS (info/lfs/*),
and WebDAV paths are intentionally excluded from these HTML headers.
Constants§
- COOP
- Cross-Origin-Opener-Policy header (WP-HDR-2).
- CORP
- Cross-Origin-Resource-Policy header (WP-HDR-2).
- HSTS
- Strict-Transport-Security header (HTTPS only, WP-HDR-3).
- PERMISSIONS_
POLICY - Permissions-Policy header (WP-HDR-2).
- REFERRER_
POLICY - Referrer-Policy header (WP-HDR-3).
- WEB_
UI_ CSP - Strict Content-Security-Policy for HTTP Web UI responses (WP-HDR-1).
- WEB_
UI_ CSP_ HTTPS - Strict Content-Security-Policy for HTTPS Web UI responses (adds
upgrade-insecure-requests). - X_
CONTENT_ TYPE_ OPTIONS - X-Content-Type-Options header (WP-HDR-3).
- X_
FRAME_ OPTIONS - X-Frame-Options header (WP-HDR-3).
Functions§
- html_
cache_ headers - Return HTML
Cache-ControlandVaryheaders (WP-CACHE-1). - html_
security_ headers - Return the standard HTML security header pairs for
arks serveWeb UI responses. - is_
git_ wire_ path - Returns
trueifpathbelongs to Git Smart/Dumb HTTP, Git LFS, or WebDAV and must never receive Web UI HTML security headers.