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:
1 parent
8c03fd624c
commit
93463a529b
1 file changed
+6
-3
@@ -36,12 +36,15 @@ __HOST__ {
|
|||||||
# Everything else is the static site. SvelteKit writes each route as
|
# 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
|
# <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
|
# 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
|
# cached for a year, and the glass board's figures, which weigh a few
|
||||||
# up on the next load.
|
# megabytes and seldom change, for a week; every other response is
|
||||||
|
# revalidated so a deploy shows up on the next load.
|
||||||
handle {
|
handle {
|
||||||
@immutable path /_app/immutable/*
|
@immutable path /_app/immutable/*
|
||||||
header @immutable Cache-Control "public, max-age=31536000, 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"
|
header @mutable Cache-Control "no-cache"
|
||||||
try_files {path} {path}.html /index.html
|
try_files {path} {path}.html /index.html
|
||||||
file_server
|
file_server
|
||||||
|
|||||||
Reference in new issue
Block a user