N
Nuxt9mo ago
konsav

Cache-Control: max-age=604800, public.

I have my project in "vue": "^3.2.45" and "nuxt": "^3.1.1". In one page of my project appear on network in Response headers Cache-Control: max-age=604800, public and i have problems to continue. I haven't set up something about caching. Do you have any idea about that?
3 Replies
konsav
konsavOP9mo ago
I add in server/plugin/header.ts import { RenderResponse } from "nitropack"; export default defineNitroPlugin((nitroApp) => { nitroApp.hooks.hook("render:response", (res: RenderResponse, { event }) => { res.headers["X-Frame-Options"] = "DENY"; res.headers["Cache-Control"] = "no-cache"; }); }); It adds in Cache-Control: no-cache but it appears max-age yet.
konsav
konsavOP9mo ago
No description
konsav
konsavOP9mo ago
Any idea?
Want results from more Discord servers?
Add your server