Replies: 2 comments 9 replies
-
anyone? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I think this might be due to the browser's caching behavior
based on this idea, I have set all caching related headers to not cache anything on browser using cloudfront function. And I think it is working fine. This might be a temporary workaround |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I’m using Next.js 15.2.3 with static export (next build && next export) and deploying it to AWS S3, serving it through CloudFront. Everything works fine on the first deployment.
However, when I update my code, rebuild, sync the new files to S3, and invalidate the CloudFront cache, users sometimes see .txt files when navigating between routes instead of the expected content.
To Reproduce
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions