# Cloudflare Pages static-asset headers (does not apply to /api/* Functions —
# those set their own Cache-Control in code).
# max-age=0 + stale-while-revalidate: returning visitors paint instantly from
# the cached copy while the browser refetches in the background, so schedule
# edits show up one view later instead of blocking first paint.
/schedule.json
  Cache-Control: public, max-age=0, stale-while-revalidate=86400

# Service worker must revalidate so push/notification fixes reach installed PWAs.
/sw.js
  Cache-Control: public, max-age=0, must-revalidate

# Pages default is max-age=14400 — returning browsers kept old JS/CSS for 4h.
# ETag still allows cheap 304s; max-age=0 forces a revalidate every load.
# Path rules (globs like /*.js do not match /script.js on Pages).
/script.js
  Cache-Control: public, max-age=0, must-revalidate

/history.js
  Cache-Control: public, max-age=0, must-revalidate

/style.css
  Cache-Control: public, max-age=0, must-revalidate

/about.html
  Cache-Control: public, max-age=0, must-revalidate

/LICENSE
  Content-Type: text/plain; charset=utf-8
  Cache-Control: public, max-age=86400

/FORK.md
  Content-Type: text/plain; charset=utf-8
  Cache-Control: public, max-age=0, must-revalidate

/xspaceslive.zip
  Content-Type: application/zip
  Content-Disposition: attachment; filename="xspaceslive.zip"
  Cache-Control: public, max-age=0, must-revalidate
