We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.gz
1 parent 9280a23 commit 1bfc693Copy full SHA for 1bfc693
test/fixture/public/build/test.js.gz
49 Bytes
test/tests.ts
@@ -447,6 +447,14 @@ export function testNitro(
447
expect(headers["content-type"]).toBe("text/plain; charset=utf-8");
448
});
449
450
+ it("serve static asset /build/test.js.gz", async () => {
451
+ const { status, headers } = await callHandler({
452
+ url: "/build/test.js.gz",
453
+ });
454
+ expect(status).toBe(200);
455
+ expect(headers["content-encoding"]).toBe("gzip");
456
457
+
458
it("stores content-type for prerendered routes", async () => {
459
const { data, headers } = await callHandler({
460
url: "/api/param/prerender4",
0 commit comments