Your SPA Homepage Works Through Caddy, but Refreshing /settings Returns 404
Client-side routes exist only after index.html loads; the server still needs a fallback for direct requests.
Client-side routes exist only after index.html loads; the server still needs a fallback for direct requests.
A catch-all frontend fallback can hide backend routing mistakes behind a successful HTML response.