We currently use $env/static/public to set our cache timeouts: PUBLIC_EMBED_MAX_AGE and friends. But these read at build time, not run time, so changing them requires a new deployment. These live in src/config/config.js.
We can't just swap to $env/dynamic/public yet, because our service worker also imports src/config/config.js, and it can't read dynamic variables, so I think we need to separate out our cache config. Maybe we should break apart the rest of config.js. This may roll into #1041.
We currently use
$env/static/publicto set our cache timeouts:PUBLIC_EMBED_MAX_AGEand friends. But these read at build time, not run time, so changing them requires a new deployment. These live insrc/config/config.js.We can't just swap to
$env/dynamic/publicyet, because our service worker also importssrc/config/config.js, and it can't read dynamic variables, so I think we need to separate out our cache config. Maybe we should break apart the rest ofconfig.js. This may roll into #1041.