diff --git a/internal/server/static_delivery.go b/internal/server/static_delivery.go index fd3f00f1..a6ba0f3d 100644 --- a/internal/server/static_delivery.go +++ b/internal/server/static_delivery.go @@ -69,6 +69,8 @@ func staticCachePolicy(r *http.Request) string { return "public, max-age=31536000, immutable" } return "public, max-age=0, must-revalidate" + case strings.HasPrefix(path, "/static/assets/") && r.URL.Query().Get("v") != "": + return "public, max-age=31536000, immutable" case strings.HasPrefix(path, "/static/assets/") && isImagePath(path): return "public, max-age=86400" default: