diff options
| author | Abdelaziz Mahdy <[email protected]> | 2024-12-22 15:32:56 -0400 |
|---|---|---|
| committer | Abdelaziz Mahdy <[email protected]> | 2024-12-22 15:32:56 -0400 |
| commit | f1f5db84f98818af2c047ea375832e5ded5f021a (patch) | |
| tree | 8bac1a56c3e1a6000b64e1face8157fc5eb0da56 /.env.example | |
| parent | 2d5377cbc58bd84dcd0585798e77995265c8727b (diff) | |
| download | aniwatch-api-f1f5db84f98818af2c047ea375832e5ded5f021a.tar.xz aniwatch-api-f1f5db84f98818af2c047ea375832e5ded5f021a.zip | |
feat(cache): add Cache-Control middleware and update .env.example
Diffstat (limited to '.env.example')
| -rw-r--r-- | .env.example | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.env.example b/.env.example index 8513245..ecbd080 100644 --- a/.env.example +++ b/.env.example @@ -23,3 +23,9 @@ ANIWATCH_API_MAX_REQS=70 # env to use optional redis caching functionality ANIWATCH_API_REDIS_CONN_URL=<rediss://default:[email protected]:6379> + +# Cache-Control settings for Vercel Edge Caching +# s-maxage specifies the maximum amount of time a resource is considered fresh when served by a CDN cache +S_MAXAGE=60 +# stale-while-revalidate specifies the amount of time a resource is served stale while a new one is fetched +STALE_WHILE_REVALIDATE=30 |
