mirror of
https://github.com/usememos/memos.git
synced 2025-10-09 13:56:40 +08:00
chore: remove default gzip middleware
This commit is contained in:
parent
920b0f64f2
commit
04d7ba48e5
1 changed files with 1 additions and 3 deletions
|
@ -35,9 +35,7 @@ func (*FrontendService) Serve(_ context.Context, e *echo.Echo) {
|
|||
}
|
||||
|
||||
// Route to serve the assets folder without HTML5 fallback.
|
||||
e.Group("/assets").Use(middleware.GzipWithConfig(middleware.GzipConfig{
|
||||
Level: 5,
|
||||
}), func(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
e.Group("/assets").Use(func(next echo.HandlerFunc) echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
c.Response().Header().Set(echo.HeaderCacheControl, "max-age=31536000, immutable")
|
||||
return next(c)
|
||||
|
|
Loading…
Add table
Reference in a new issue