Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions apps/website/public/_headers
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
/build/*
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable

# Documentation pages - shorter caching for content updates
# Pagefind search assets - long-term caching
/pagefind/*
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable

# Documentation pages - cache at edge, allow quick browser updates
/docs/*
Cache-Control: public, max-age=3600, s-maxage=3600
Cache-Control: public, max-age=600, s-maxage=86400, stale-while-revalidate=604800

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

# Override for API routes or dynamic content (if any)
/api/*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"vite-plugin-inspect": "11.3.3",
"vite-tsconfig-paths": "4.3.2",
"vitest": "^1.6.1",
"wrangler": "^3.114.14",
"wrangler": "^4.40.2",
"yargs": "^17.7.2"
},
"keywords": [
Expand Down
Loading
Loading