Skip to content

Commit 8457696

Browse files
docs: clarify that cache.ttl is set once and document workaround for per-request TTL changes (#1209)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arthurfiorette <47537704+arthurfiorette@users.noreply.github.com>
1 parent 3c4bb71 commit 8457696

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/src/config/request-specifics.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ the interpreter can't determine their TTL value to override this one.
130130

131131
:::
132132

133+
::: warning
134+
135+
The `ttl` is only applied when the response is **first cached**; changing it on follow-up
136+
requests has no effect. See [#1024](https://github.com/arthurfiorette/axios-cache-interceptor/issues/1024) for workarounds.
137+
138+
:::
139+
133140
The time until the cached value is expired in milliseconds.
134141

135142
If a function is used, it will receive the complete response and waits to return a TTL

0 commit comments

Comments
 (0)