Skip to content

Commit

Permalink
fix: don't cache POST when serving embedded static html (#2766)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored Feb 21, 2025
1 parent 5bd68dd commit 28217d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/run/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export const setCacheControlHeaders = (

if (
cacheControl === null &&
['GET', 'HEAD'].includes(request.method) &&
!headers.has('cdn-cache-control') &&
!headers.has('netlify-cdn-cache-control') &&
requestContext.usedFsReadForNonFallback
Expand Down

0 comments on commit 28217d4

Please sign in to comment.