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
2 changes: 2 additions & 0 deletions apps/website/adapters/static/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export default extendConfig(baseConfig, () => {
plugins: [
staticAdapter({
origin: 'https://qwikui.com',
include: ['/*'],
exclude: ['/api/*'],
}),
],
};
Expand Down
12 changes: 11 additions & 1 deletion apps/website/public/_headers
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# https://developers.cloudflare.com/pages/platform/headers/

# Static assets - long-term caching
/build/*
Cache-Control: public, max-age=31536000, s-maxage=31536000, immutable

# Documentation pages - shorter caching for content updates
/docs/*
Cache-Control: public, max-age=3600, s-maxage=3600
Cache-Control: public, max-age=3600, s-maxage=3600

# Root and other static pages - medium-term caching
/*
Cache-Control: public, max-age=7200, s-maxage=7200

# Override for API routes or dynamic content (if any)
/api/*
Cache-Control: no-cache
13 changes: 13 additions & 0 deletions apps/website/public/_routes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"include": ["/api/*"],
"exclude": [
"/_headers",
"/_redirects",
"/build/*",
"/favicon.ico",
"/manifest.json",
"/service-worker.js",
"/*"
]
}