# Cloudflare 快取與安全標頭（其他主機請設定等效的 Cache-Control）
#
# 所有回應都加 no-transform：Cloudflare 不會改寫網頁內容，
# 也就不會自動插入 Web Analytics 等第三方腳本（隱私權政策承諾不放分析工具）。
# 網頁本身每次都向伺服器確認是否有新版（部署後立即生效）。
/*
  Cache-Control: public, max-age=0, must-revalidate, no-transform
  X-Content-Type-Options: nosniff
  Referrer-Policy: strict-origin-when-cross-origin

# 打包後的程式與 PDF 引擎檔名含雜湊值，內容不會變：快取一年
/assets/*
  ! Cache-Control
  Cache-Control: public, max-age=31536000, immutable, no-transform

# 字型檔名固定：快取 30 天
/fonts/*
  ! Cache-Control
  Cache-Control: public, max-age=2592000, no-transform

# Cloudflare 預覽網址（*.pages.dev）不讓搜尋引擎收錄，避免和正式網域重複
https://:project.pages.dev/*
  X-Robots-Tag: noindex
