Keep SPA fallback for client routes, including extensionless documentation viewers, but not missing document files, bundles or other static resources. Missing resources are not cached, so a later installation can supply them without a stale negative response.
Contract-Neutral: Correct static-resource failure responses at the existing SPA boundary; no API, authentication, data schema or supported client route changes.
Change-source: pulse-maintainer
The embedded frontend file server had no content type for .md, so every
in-app "Full details" / "Terms of Service" / security-guide link to
/docs/*.md answered application/octet-stream and the browser downloaded
the file instead of showing it. Shipped docs now serve as
text/plain; charset=utf-8 and open readable in the tab the app targets.
Hashed static assets (e.g., index-BXHytNQV.js, index-TvhSzimt.css) are
now cached for 1 year with immutable flag since content hash changes
when files change.
Benefits:
- Faster page loads on subsequent visits
- Reduced server bandwidth
- Better user experience on demo and production instances
Only index.html and non-hashed assets remain uncached to ensure
users always get the latest version.