From c81221545bfffe1666ba90ed31773f5003a62561 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sun, 11 Sep 2022 15:46:08 +0200 Subject: [PATCH] Bust metadata and cover caching for now. We have no quick, clean solution for this yet and it ruins functionality of the overlay. --- icedreammusic/liquidsoap/metadata_api.liq | 3 +++ 1 file changed, 3 insertions(+) diff --git a/icedreammusic/liquidsoap/metadata_api.liq b/icedreammusic/liquidsoap/metadata_api.liq index b785871..eb61ba7 100644 --- a/icedreammusic/liquidsoap/metadata_api.liq +++ b/icedreammusic/liquidsoap/metadata_api.liq @@ -40,6 +40,7 @@ def setup_harbor_metadata_api(~metadata_api_port=21338, s) = ("access-control-allow-methods","GET,POST"), ("access-control-allow-headers","Origin,X-Requested-With,Content-Type,Accept,Authorization,access-control-allow-headers,access-control-allow-origin"), ("content-type","application/json"), + ("cache-control", "no-store"), ], data=data) end @@ -53,6 +54,7 @@ def setup_harbor_metadata_api(~metadata_api_port=21338, s) = ("access-control-allow-credentials","true"), ("access-control-allow-methods","GET,POST"), ("access-control-allow-headers","Origin,X-Requested-With,Content-Type,Accept,Authorization,access-control-allow-headers,access-control-allow-origin"), + ("cache-control", "no-store"), ("content-type", cover.mime), ("content-length", string_of(string.length(cover))), ], data=string_of(cover)) @@ -62,6 +64,7 @@ def setup_harbor_metadata_api(~metadata_api_port=21338, s) = ("access-control-allow-credentials","true"), ("access-control-allow-methods","GET,POST"), ("access-control-allow-headers","Origin,X-Requested-With,Content-Type,Accept,Authorization,access-control-allow-headers,access-control-allow-origin"), + ("cache-control", "no-store"), ], data="") end end