Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2b0280b

Browse files
committed
test: edge cache response depends on the node we hit
1 parent1aee505 commit2b0280b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/e2e/dynamic-cms.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test.describe('Dynamic CMS', () => {
2929
expect(response2?.status()).toEqual(200)
3030
expect(headers2['cache-control']).toEqual('public,max-age=0,must-revalidate')
3131
expect(headers2['cache-status']).toMatch(
32-
/"Next.js";hit,"NetlifyDurable";fwd=stale;ttl=[0-9]+;stored,"NetlifyEdge";fwd=stale/,
32+
/"Next.js";hit,"NetlifyDurable";fwd=stale;ttl=[0-9]+;stored,"NetlifyEdge";fwd=(stale|miss)/,
3333
)
3434
expect(headers2['netlify-cache-tag']).toEqual('_n_t_/content/blog')
3535
expect(headers2['netlify-cdn-cache-control']).toMatch(
@@ -48,7 +48,7 @@ test.describe('Dynamic CMS', () => {
4848
expect(response3?.status()).toEqual(404)
4949
expect(headers3['cache-control']).toEqual('public,max-age=0,must-revalidate')
5050
expect(headers3['cache-status']).toMatch(
51-
/"Next.js";fwd=miss,"NetlifyDurable";fwd=stale;ttl=[0-9]+;stored,"NetlifyEdge";fwd=stale/,
51+
/"Next.js";fwd=miss,"NetlifyDurable";fwd=stale;ttl=[0-9]+;stored,"NetlifyEdge";fwd=(stale|miss)/,
5252
)
5353
expect(headers3['netlify-cache-tag']).toEqual('_n_t_/content/blog')
5454
expect(headers3['netlify-cdn-cache-control']).toMatch(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp