Skip to content

Commit

Permalink
Update static.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ashermyers authored Aug 20, 2024
1 parent 35671a9 commit 63afcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware/static/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func New(root string, cfg ...Config) fiber.Handler {
GenerateIndexPages: config.Browse,
AcceptByteRange: config.ByteRange,
Compress: config.Compress,
CompressBrotli: config.Compress,
CompressBrotli: config.Compress, // Brotli compression won't work without this
CompressedFileSuffixes: c.App().Config().CompressedFileSuffixes,
CacheDuration: config.CacheDuration,
SkipCache: config.CacheDuration < 0,
Expand Down

0 comments on commit 63afcdf

Please sign in to comment.