Files
ilijachrchev ac2cf3c80a Add explicit Content-Type for .js in Netlify/Cloudflare _headers
The .htaccess sets both AddType directives (application/wasm for .wasm,
text/javascript for .js), and the _headers file sets Content-Type for
.wasm but not for .js. Most hosts already serve .js correctly, but the
explicit declaration is defensive and keeps the two config files
consistent.
2026-11-20 10:42:29 +00:00

15 lines
358 B
Plaintext

# Netlify / Cloudflare Pages header rules (see HOSTING.md). Other hosts: set the same headers.
/*
X-Content-Type-Options: nosniff
/*.wasm
Content-Type: application/wasm
Cache-Control: public, max-age=31536000, immutable
/*.js
Content-Type: text/javascript
Cache-Control: public, max-age=31536000, immutable
/index.html
Cache-Control: no-cache