log cache key

This commit is contained in:
Karol Wypchlo 2021-06-01 12:33:13 +02:00
parent 176e5c7a9d
commit c9081e9d87
1 changed files with 2 additions and 0 deletions

View File

@ -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)