diff --git a/static/static.go b/static/static.go index a1266271..49b653f8 100644 --- a/static/static.go +++ b/static/static.go @@ -93,7 +93,7 @@ func fileServer(r chi.Router, path string, root http.FileSystem, embeddedFS embe if config.IsProductionEnvironment() { ext := filepath.Ext(requestedPath) switch ext { - case ".css", ".js", ".jpg", ".jpeg", ".png", ".gif", ".svg", ".woff", ".woff2", ".ttf": + case ".css", ".jpg", ".jpeg", ".png", ".gif", ".svg", ".woff", ".woff2", ".ttf": // Cache for 1 week (604800 seconds) crw.Header().Set("Cache-Control", "public, max-age=604800, stale-while-revalidate=86400") default: