Skip to content

Commit d0607b5

Browse files
Merge branch 'main' into main
2 parents 6287ea1 + ac82b0c commit d0607b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/middleware/static.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ To define static routes using `Get`, append the wildcard (`*`) operator at the e
154154
| Browse | `bool` | When set to true, enables directory browsing. | `false` |
155155
| Download | `bool` | When set to true, enables direct download. | `false` |
156156
| IndexNames | `[]string` | The names of the index files for serving a directory. | `[]string{"index.html"}` |
157-
| CacheDuration | `string` | Expiration duration for inactive file handlers.<br /><br />Use a negative time.Duration to disable it. | `10 * time.Second` |
157+
| CacheDuration | `time.Duration` | Expiration duration for inactive file handlers.<br /><br />Use a negative time.Duration to disable it. | `10 * time.Second` |
158158
| MaxAge | `int` | The value for the Cache-Control HTTP-header that is set on the file response. MaxAge is defined in seconds. | `0` |
159159
| ModifyResponse | `fiber.Handler` | ModifyResponse defines a function that allows you to alter the response. | `nil` |
160160
| NotFoundHandler | `fiber.Handler` | NotFoundHandler defines a function to handle when the path is not found. | `nil` |

0 commit comments

Comments
 (0)