Skip to content

Commit 8d3840a

Browse files
docs: move cache.ttl first-cached note out of warning block to bottom of section (#1211)
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 8457696 commit 8d3840a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/src/config/request-specifics.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,14 @@ 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-
140133
The time until the cached value is expired in milliseconds.
141134

142135
If a function is used, it will receive the complete response and waits to return a TTL
143136
value
144137

138+
The `ttl` is only applied when the response is **first cached**; changing it on follow-up
139+
requests has no effect. See [#1024](https://github.com/arthurfiorette/axios-cache-interceptor/issues/1024) for workarounds.
140+
145141
## cache.interpretHeader
146142

147143
<Badge text="optional" type="warning"/>

0 commit comments

Comments
 (0)