mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-23 04:02:49 -05: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
476 B
ApacheConf
15 lines
476 B
ApacheConf
# Apache (see HOSTING.md). Needs mod_mime; mod_deflate and mod_headers are optional.
|
|
AddType application/wasm .wasm
|
|
AddType text/javascript .js
|
|
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE application/wasm text/javascript text/html
|
|
</IfModule>
|
|
|
|
<IfModule mod_headers.c>
|
|
# The file names don't change between releases: revalidate them (HOSTING.md).
|
|
<FilesMatch "(\.(wasm|js)|^index\.html)$">
|
|
Header set Cache-Control "no-cache"
|
|
</FilesMatch>
|
|
</IfModule>
|