Does cache control header work out of the box on self hosted NextJS APIs?

Does the

"Cache-Control": "s-maxage=123123123"


work out of the box with self hosted NextJS apps? I know Vercel does this for you, but does the same apply for self hosting?
Was this page helpful?