From ac82b0c413e8116908b2ab6d19a13123133f2871 Mon Sep 17 00:00:00 2001 From: Giovanni Rivera Date: Thu, 2 Jan 2025 23:36:58 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9A=20Doc:=20Fix=20static=20middleware?= =?UTF-8?q?=20CacheDuration=20data=20type=20typo=20(#3273)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/middleware/static.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/middleware/static.md b/docs/middleware/static.md index a8c7ec6093..61a955f96e 100644 --- a/docs/middleware/static.md +++ b/docs/middleware/static.md @@ -154,7 +154,7 @@ To define static routes using `Get`, append the wildcard (`*`) operator at the e | Browse | `bool` | When set to true, enables directory browsing. | `false` | | Download | `bool` | When set to true, enables direct download. | `false` | | IndexNames | `[]string` | The names of the index files for serving a directory. | `[]string{"index.html"}` | -| CacheDuration | `string` | Expiration duration for inactive file handlers.

Use a negative time.Duration to disable it. | `10 * time.Second` | +| CacheDuration | `time.Duration` | Expiration duration for inactive file handlers.

Use a negative time.Duration to disable it. | `10 * time.Second` | | MaxAge | `int` | The value for the Cache-Control HTTP-header that is set on the file response. MaxAge is defined in seconds. | `0` | | ModifyResponse | `fiber.Handler` | ModifyResponse defines a function that allows you to alter the response. | `nil` | | NotFoundHandler | `fiber.Handler` | NotFoundHandler defines a function to handle when the path is not found. | `nil` |