fix(release): bust cached application assets
This commit is contained in:
1 parent
8c8eb73b74
commit
a49092cf16
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ export default {
|
||||
} catch (error) {
|
||||
return Response.json({ error: "Bing wallpaper is temporarily unavailable", detail: String(error) }, { status: 502 });
|
||||
}
|
||||
if (url.pathname === "/addons.js") return new Response(addonsJs, { headers: headers("application/javascript; charset=utf-8") });
|
||||
if (url.pathname === "/addons.js") return new Response(addonsJs, { headers: headers("application/javascript; charset=utf-8", "no-cache") });
|
||||
if (url.pathname === "/" || url.pathname === "/index.html") return new Response(indexHtml, { headers: headers("text/html; charset=utf-8", "no-cache") });
|
||||
return new Response("Not found", { status: 404 });
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user