mirror of
https://github.com/aphrody-labs/effectcraft.git
synced 2026-10-14 11:39:02 +00:00
- #174: the file names are fixed (effectcraft_web.js, effectcraft_web_bg.wasm, worker.js, sw.js…), not content-hashed, so the guide's year-long immutable caching kept returning visitors on the old release after an in-place upgrade. The guide, nginx example, _headers and .htaccess now revalidate (no-cache) the .wasm, .js and index.html, and suggest a versioned path for longer caching. The file table lists the real files. - #180: the .wasm is about 58 MB (17 MB gzip, 10 MB Brotli) for v0.3.1, not 13 MB / 5 MB; docs/web.md's 38 MB figure is updated too. - #165: preferences live in the origin's browser storage (OPFS, IndexedDB or memory), not localStorage. - #164: relative URLs come from the page itself (and package.sh's check), not a Trunk.toml that doesn't exist. The iframe example's title no longer says image editor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
369 B
Plaintext
15 lines
369 B
Plaintext
# Netlify / Cloudflare Pages header rules (see HOSTING.md). Other hosts: set the same headers.
|
||
/*
|
||
X-Content-Type-Options: nosniff
|
||
|
||
# The file names don't change between releases: revalidate them (HOSTING.md › Any path works).
|
||
/*.wasm
|
||
Content-Type: application/wasm
|
||
Cache-Control: no-cache
|
||
|
||
/*.js
|
||
Cache-Control: no-cache
|
||
|
||
/index.html
|
||
Cache-Control: no-cache
|