Fix product performance grouped JSON build

This commit is contained in:
M_Kececi
2026-07-05 22:06:43 +03:00
parent fbdde54eee
commit 9e1ecb9b3f
5 changed files with 766 additions and 564 deletions
+2 -1
View File
@@ -590,7 +590,8 @@ WHERE id = $1
return
}
if storedInDB && len(binData) > 0 {
_ = storedInDB
if len(binData) > 0 {
w.Header().Set("Content-Type", http.DetectContentType(binData))
w.Header().Set("Cache-Control", "public, max-age=3600")
_, _ = w.Write(binData)