# Cloudflare Pages _headers — cache policy for the spark-wasm BI dashboard.
#
# The engine ships at STABLE paths (pkg/spark_wasm.js + pkg/spark_wasm_bg.wasm.gz)
# whose CONTENT changes together on every engine rebuild. The JS glue calls
# wasm exports by name (e.g. sparkengine_loadTpch), so a stale wasm paired with
# fresh JS throws "wasm.<export> is not a function". Force a conditional
# revalidation (ETag) on every load so the JS + wasm always move as a matched
# pair. 304s keep this cheap; a genuine engine change pulls the new bytes for
# BOTH at once. (This demo ships no data/ fixtures — the dataset is generated
# in-browser — so there is no data cache rule.)
/pkg/*
  Cache-Control: no-cache, must-revalidate
/app.js
  Cache-Control: no-cache, must-revalidate
/index.html
  Cache-Control: no-cache, must-revalidate
