#Problem Cache-control: no-cache in production

1 messages · Page 1 of 1 (latest)

cinder ridge
#

Hello,

I have a website that has been migrated to nextjs 15, however when deploying it to production, I can see that the cache-control is set to no-cache on the main page (first ressource downloaded).

I am using the standalone output from nextjs config

How can I change it?

I did double check and the page is using a static routing as per the toolbar

torn berryBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

lofty pilot
#

you usually dont want browser cache for pages unless you know what your doing - as it makes it harder to update to new version and a lot of things (static files with hash in name are way safer as u dont need it to change ever)

however, i think you maybe can use next.config.js to set the headers manually