# Cloudflare Pages _headers — cache policy for the spark-wasm demo.
#
# 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, so a stale wasm paired with fresh JS throws
# "wasm.<export> is not a function". With a long max-age the browser can
# revalidate the two files independently and serve a skewed pair for up to the
# cache window. 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.
/pkg/*
  Cache-Control: no-cache, must-revalidate
/app.js
  Cache-Control: no-cache, must-revalidate
/index.html
  Cache-Control: no-cache, must-revalidate
