Skip to content

Commit d900472

Browse files
authored
chore: update wrangler (#1149)
1 parent 21bd5f4 commit d900472

File tree

3 files changed

+315
-349
lines changed

3 files changed

+315
-349
lines changed

apps/website/public/_headers

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44
/build/*
55
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
66

7-
# Documentation pages - shorter caching for content updates
7+
# Pagefind search assets - long-term caching
8+
/pagefind/*
9+
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable
10+
11+
# Documentation pages - cache at edge, allow quick browser updates
812
/docs/*
9-
Cache-Control: public, max-age=3600, s-maxage=3600
13+
Cache-Control: public, max-age=600, s-maxage=86400, stale-while-revalidate=604800
1014

11-
# Root and other static pages - medium-term caching
15+
# Root and other static pages - cache at edge for faster HTML loads
1216
/*
13-
Cache-Control: public, max-age=7200, s-maxage=7200
17+
Cache-Control: public, max-age=900, s-maxage=86400, stale-while-revalidate=604800
1418

1519
# Override for API routes or dynamic content (if any)
1620
/api/*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"vite-plugin-inspect": "11.3.3",
142142
"vite-tsconfig-paths": "4.3.2",
143143
"vitest": "^1.6.1",
144-
"wrangler": "^3.114.14",
144+
"wrangler": "^4.40.2",
145145
"yargs": "^17.7.2"
146146
},
147147
"keywords": [

0 commit comments

Comments
 (0)