Skip to content

Commit 9bc82bf

Browse files
emir-karabegclaude
andcommitted
fix(config): remove redundant _next/static cache header
Next.js already sets Cache-Control: public, max-age=31536000, immutable on _next/static assets natively and this cannot be overridden. The custom rule was redundant on Vercel and conflicted with the extension-based rule on self-hosted deployments due to last-match-wins ordering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 499f43a commit 9bc82bf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

apps/sim/next.config.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,15 +149,6 @@ const nextConfig: NextConfig = {
149149
],
150150
async headers() {
151151
return [
152-
{
153-
source: '/_next/static/:path*',
154-
headers: [
155-
{
156-
key: 'Cache-Control',
157-
value: 'public, max-age=31536000, immutable',
158-
},
159-
],
160-
},
161152
{
162153
source: '/:all*(svg|jpg|jpeg|png|gif|ico|webp|avif|woff|woff2|ttf|eot)',
163154
headers: [

0 commit comments

Comments
 (0)