From 9a515487a615b42bf1e392b352d105e2891ff77f Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Sat, 25 Jul 2020 01:38:55 -0600 Subject: [PATCH] try something --- src/Auth.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Auth.jl b/src/Auth.jl index d276067..a22dce5 100644 --- a/src/Auth.jl +++ b/src/Auth.jl @@ -22,6 +22,7 @@ function addtoken!(resp::HTTP.Response, user::User) keyid = first(first(JWT_AUTH_KEYS[].keys)) sign!(jwt, JWT_AUTH_KEYS[], keyid) HTTP.setheader(resp, "Set-Cookie" => "$JWT_TOKEN_COOKIE_NAME=$(join([jwt.header, jwt.payload, jwt.signature], '.')); Expires=$(Dates.format(exp, DATE_FORMAT))") + HTTP.setheader(resp, "Cache-Control" => "private") return end