hotfix cache upload image

This commit is contained in:
lloydzhou 2024-07-25 17:26:16 +08:00
parent ecd78b3bdd
commit 6f0846b2af

View File

@ -16,7 +16,7 @@ self.addEventListener("install", function (event) {
}); });
function jsonify(data) { function jsonify(data) {
return Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } }) return new Response(JSON.stringify(data), { headers: { 'content-type': 'application/json' } })
} }
async function upload(request, url) { async function upload(request, url) {