From 346fee8eb46feef8df9d193cc25fa71407c7338e Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 25 Aug 2025 17:10:24 +0200 Subject: [PATCH] refac --- docs/getting-started/env-configuration.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/getting-started/env-configuration.md b/docs/getting-started/env-configuration.md index 45bafe39..54ee8e1e 100644 --- a/docs/getting-started/env-configuration.md +++ b/docs/getting-started/env-configuration.md @@ -3829,7 +3829,12 @@ If you use UVICORN_WORKERS, you also need to ensure that related environment var #### `CACHE_CONTROL` - Type: `str` -- Description: Set the Cache-Control header on all HTTP responses. The default is no caching, so it is recommended to set this when deploying, e.g. to `private,max-age=86400`, to reduce loading time of the static files. +- Default: Not set (no Cache-Control header added) +- Description: Sets the Cache-Control header for all HTTP responses. Supports standard directives like `public`, `private`, `no-cache`, `no-store`, `must-revalidate`, `max-age=seconds`, etc. If an invalid value is provided, defaults to `"no-store, max-age=0"` (no caching). +- Examples: + - `"private, max-age=86400"` - Cache privately for 24 hours + - `"public, max-age=3600, must-revalidate"` - Cache publicly for 1 hour, then revalidate + - `"no-cache, no-store, must-revalidate"` - Never cache ### Proxy Settings