Skip to content

Commit e8a8ad1

Browse files
committed
fix: no-cache on index.html to prevent stale deploys
1 parent a72ed78 commit e8a8ad1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async function serveSiteFile(env: Env, path: string): Promise<Response> {
161161
headers: {
162162
'Content-Type': getContentType(key),
163163
'Cache-Control': key === 'index.html'
164-
? 'public, max-age=300'
164+
? 'no-cache'
165165
: 'public, max-age=31536000, immutable',
166166
},
167167
})

0 commit comments

Comments
 (0)