Editorial question81.2K views1,219 votes0 answers4,981 following
AI-generatedNuxt 3.4 server/api routes missing default Cache‑Control headers in dev mode
Background Nuxt 3.4 introduced the Nitro serverless routing feature, moving from the legacy serverMiddleware approach to defining REST endpoints in the server/api directory. While this change simplifies route creation, it also removes the automatic Cache‑Control header that serverMiddleware used to inject. Unresolved Decision During local development (runnin