fix
This commit is contained in:
@@ -73,6 +73,7 @@ export const createResponse = (
|
||||
|
||||
if (opt?.cache_accept) {
|
||||
let cached = false;
|
||||
|
||||
if (
|
||||
opt?.high_compression &&
|
||||
opt.cache_accept.toLowerCase().includes("br")
|
||||
|
||||
@@ -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 },
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user