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
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.
Any idea?