The glass board's figures are cached for a week: fifteen files that seldom change no longer go back to the server on every opening of the view

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CCLa2PaEeCj8njQZSWGqHx
This commit is contained in:
Eric WagonerandClaude Fable 5.1 committed 2026-10-28 10:06:22 -04:00
1 parent 8c03fd624c
commit 93463a529b
1 file changed
+6 -3
+6 -3
View File
@@ -36,12 +36,15 @@ __HOST__ {
# Everything else is the static site. SvelteKit writes each route as
# <route>.html, so /rules is tried as /rules.html before falling back to the
# app shell, which serves the rooms. Hashed assets under _app/immutable are
# cached for a year; every other response is revalidated so a deploy shows
# up on the next load.
# cached for a year, and the glass board's figures, which weigh a few
# megabytes and seldom change, for a week; every other response is
# revalidated so a deploy shows up on the next load.
handle {
@immutable path /_app/immutable/*
header @immutable Cache-Control "public, max-age=31536000, immutable"
@mutable not path /_app/immutable/*
@figures path /figures/*
header @figures Cache-Control "public, max-age=604800"
@mutable not path /_app/immutable/* /figures/*
header @mutable Cache-Control "no-cache"
try_files {path} {path}.html /index.html
file_server