Revert "Merge remote-tracking branch 'upstream/main' into Improve-notification-localization"
This reverts commitf435d1e7ed, reversing changes made todae2aee676.
This commit is contained in:
@@ -210,11 +210,6 @@ func serve(cctx *cli.Context) error {
|
||||
maxAge = 7 * (60 * 60 * 24) // 1 week
|
||||
}
|
||||
|
||||
// fonts can be cached for a year
|
||||
if strings.HasSuffix(path, ".otf") {
|
||||
maxAge = 365 * (60 * 60 * 24) // 1 year
|
||||
}
|
||||
|
||||
c.Response().Header().Set("Cache-Control", fmt.Sprintf("public, max-age=%d", maxAge))
|
||||
return next(c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user