Styling
Static Public Assets
Serve images, fonts, icons, and other static files from app/public with predictable URLs and production cache headers.
assetsstaticcache-control
Files in app/public are copied into the client output and served as static assets.
Example
app/public/
favicon.svg
images/task-board.png
fonts/mono.woff2
Reference them by root-relative URL:
<img src="/images/task-board.png" alt="Task board" />
Production cache behavior
The framework now applies static cache defaults in production:
- hashed JS/CSS bundles:
public, max-age=31536000, immutable - other static files:
public, max-age=3600
You can override those defaults with headers rules in rbssr.config.ts. Use null to remove a default header entirely for a matching path.
Related APIs
Next step
Continue with Dev Server to see how static and generated assets differ in development.