Next.js Discord

Discord Forum

Cache pages in CDN

Unanswered
Haddock posted this in #help-forum
Open in Discord
HaddockOP
Hi everyone, I'm deploying my Next13 app on firebase and given serverless nature of ssr backend my solution is yo heavily rely on Google cloud cdn and in that way avoid invoking cloud functions almost at all. I'm achieving this via setting s-maxage on response headers of my cloud function apis. Can you advise how can I set tesponse headers on my page.tsx output?

2 Replies

HaddockOP
&752637460550385834 can anybody advise? Thx in advance!
Do not ping moderators for code help