From fb398f52edc427448fc75a41929f5967cf0e8701 Mon Sep 17 00:00:00 2001 From: ShiKhu Date: Thu, 22 Jul 2021 10:54:52 +0800 Subject: [PATCH] fix(backend-http): no-cache options request (??) --- backend/services/http/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/http/main.go b/backend/services/http/main.go index 27a83548b..4a07d516a 100644 --- a/backend/services/http/main.go +++ b/backend/services/http/main.go @@ -66,7 +66,7 @@ func main() { w.Header().Set("Access-Control-Allow-Methods", "POST") w.Header().Set("Access-Control-Allow-Headers", "Content-Type,Authorization") if r.Method == http.MethodOptions { - w.Header().Set("Cache-Control", "max-age=86400") + //w.Header().Set("Cache-Control", "max-age=86400") w.WriteHeader(http.StatusOK) return }