Skip to content

Commit 21f97db

Browse files
committed
test: log _next/static url if it doesn't contain permanent caching header
1 parent 8e14a76 commit 21f97db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/playwright-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const test = base.extend<
9898
if (response.url().includes('/_next/static/')) {
9999
expect(
100100
response.headers()['cache-control'],
101-
'_next/static assets should have immutable cache control',
101+
`_next/static asset (${response.url()}) should have immutable cache control`,
102102
).toContain('public,max-age=31536000,immutable')
103103
}
104104
})

0 commit comments

Comments
 (0)