This commit is contained in:
Rizky
2024-08-08 14:45:18 +07:00
parent d6644860ee
commit c33e081841
4 changed files with 6 additions and 4 deletions
+1
View File
@@ -73,6 +73,7 @@ export const createResponse = (
if (opt?.cache_accept) {
let cached = false;
if (
opt?.high_compression &&
opt.cache_accept.toLowerCase().includes("br")
+1 -1
View File
@@ -10,7 +10,7 @@ export const serveWeb = async (arg: {
return createResponse(arg.content, {
cache_accept: arg.cache_accept,
high_compression: false,
high_compression: true,
headers: !type ? undefined : { "content-type": type },
});
};