From c9081e9d8706e1668ec9462db013b9f63c3eb6d9 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Tue, 1 Jun 2021 12:33:13 +0200 Subject: [PATCH] log cache key --- docker/nginx/conf.d/client.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index 4212a813..23d08364 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -474,6 +474,8 @@ server { end ngx.header["Skynet-Skylink"] = ngx.var.skylink_v2 end + + ngx.header["Cache-Key"] = ngx.var.skylink_v1 .. "+++" .. ngx.var.path .. "+++" .. ngx.var.arg_format .. "+++" .. ngx.var.arg_attachment .. "+++" .. ngx.var.slice_range } # register the download in accounts service (cookies should contain jwt)