1
0
mirror of synced 2025-12-21 19:06:49 -05:00

set max-age=0 when you want no cache (#31657)

This commit is contained in:
Peter Bengtsson
2022-10-12 21:54:28 +02:00
committed by GitHub
parent 61b66543ad
commit 5dfca10bba
5 changed files with 16 additions and 10 deletions

View File

@@ -26,6 +26,7 @@ export function cacheControlFactory(
maxAge && immutable && 'immutable',
!maxAge && 'private',
!maxAge && 'no-store',
maxAge === 0 && 'max-age=0',
]
.filter(Boolean)
.join(', ')