Skip to content

Commit b3673a0

Browse files
committed
update docs
1 parent fa20ed8 commit b3673a0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/api/ctx.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,6 +1759,18 @@ app.Get("/file-with-url-chars", func(c fiber.Ctx) error {
17591759
})
17601760
```
17611761

1762+
:::info
1763+
You can set `CacheDuration` config property to `-1` to disable caching.
1764+
:::
1765+
1766+
```go title="Example"
1767+
app.Get("/file", func(c fiber.Ctx) error {
1768+
return c.SendFile("style.css", SendFile{
1769+
CacheDuration: -1,
1770+
})
1771+
})
1772+
```
1773+
17621774
:::info
17631775
You can use multiple SendFile with different configurations in single route. Fiber creates different filesystem handler per config.
17641776
:::

0 commit comments

Comments
 (0)