dont compress responses
This commit is contained in:
@@ -31,6 +31,9 @@ async function serveFile(filename: string) {
|
||||
|
||||
const file = await Deno.readFile("../" + filename);
|
||||
const newResponse = new Response(file);
|
||||
|
||||
newResponse.headers.set('Cache-Control', 'no-transform');
|
||||
|
||||
if (filename.endsWith('.js')) {
|
||||
newResponse.headers.set('content-type', 'application/javascript')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user