sections: settings:setting-default-cache-ttl
This data as json
| id | page | ref | title | content | breadcrumbs | references |
|---|---|---|---|---|---|---|
| settings:setting-default-cache-ttl | settings | setting-default-cache-ttl | default_cache_ttl | Default HTTP caching max-age header in seconds, used for Cache-Control: max-age=X . Can be over-ridden on a per-request basis using the ?_ttl= query string parameter. Set this to 0 to disable HTTP caching entirely. Defaults to 5 seconds. datasette mydatabase.db --setting default_cache_ttl 60 Dynamic responses for authenticated actors, requests with cookies or an Authorization header, and responses that set cookies use Cache-Control: private, no-store . This takes precedence over default_cache_ttl and ?_ttl= , even when cache headers are otherwise disabled. Anonymous dynamic responses vary by Cookie and Authorization . Static assets retain their own cache policy. | ["Settings", "Settings"] | [] |