Skip to content

Cache settings should use runtime environment variables #1317

@eyeseast

Description

@eyeseast

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions