Skip to content

Commit

Permalink
fix: reduce cache control header time
Browse files Browse the repository at this point in the history
The cache control header was too long, so, wasm, scripts, and styles weren't being cleared properly leading to bugs
  • Loading branch information
okikio authored Dec 15, 2021
1 parent 2326048 commit 3d4682f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, stale-while-revalidate=480"
"value": "public, max-age=4800, stale-while-revalidate=480"
},
{
"key": "Content-Type",
Expand All @@ -78,7 +78,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, stale-while-revalidate=64880"
"value": "public, max-age=4800, stale-while-revalidate=360"
},
{
"key": "Content-Type",
Expand All @@ -91,7 +91,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, stale-while-revalidate=480"
"value": "public, max-age=480, stale-while-revalidate=360"
}
]
},
Expand Down Expand Up @@ -127,7 +127,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, stale-while-revalidate=4880"
"value": "public, max-age=480, stale-while-revalidate=360"
}
]
},
Expand All @@ -136,7 +136,7 @@
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=604800, stale-while-revalidate=480"
"value": "public, max-age=4800, stale-while-revalidate=480"
}
]
}
Expand All @@ -145,4 +145,4 @@
"silent": true,
"autoJobCancelation": true
}
}
}

0 comments on commit 3d4682f

Please sign in to comment.