Skip to content

Commit 01bf2b7

Browse files
committed
attempt2
1 parent b14ccb4 commit 01bf2b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/@apphosting/adapter-nextjs/e2e/app.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ describe("app", () => {
1212
const response = await fetch(host);
1313
assert.ok(response.ok);
1414
assert.equal(response.headers.get("content-type")?.toLowerCase(), "text/html; charset=utf-8");
15-
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000");
15+
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000, ");
1616
});
1717

1818
it("/ssg", async () => {
1919
const response = await fetch(posix.join(host, "ssg"));
2020
assert.ok(response.ok);
2121
assert.equal(response.headers.get("content-type")?.toLowerCase(), "text/html; charset=utf-8");
22-
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000");
22+
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000, ");
2323
const text = await response.text();
2424
assert.ok(text.includes("SSG"));
2525
assert.ok(text.includes("Generated"));
@@ -74,7 +74,7 @@ describe("app", () => {
7474
const response = await fetch(posix.join(host, "isr", "demand"));
7575
assert.ok(response.ok);
7676
assert.equal(response.headers.get("content-type")?.toLowerCase(), "text/html; charset=utf-8");
77-
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000");
77+
assert.equal(response.headers.get("cache-control"), "s-maxage=31536000, ");
7878
const text = await response.text();
7979
assert.ok(text.includes("A cached page"));
8080
assert.ok(text.includes("Generated"));

0 commit comments

Comments
 (0)