1
0
Fork 0

Bust metadata and cover caching for now.

We have no quick, clean solution for this yet and it ruins functionality of the
overlay.
liquidsoap-2.2
Icedream 2022-09-11 15:46:08 +02:00
parent 8f67e17e41
commit c81221545b
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 3 additions and 0 deletions

View File

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