Configuration
Private HTTP response policy
Application response policy, not a framework cache option. For private responses set an explicit HTTP no-store policy and construct minimal authorized data. This does not disable internal data caches. Apply the response policy to sensitive error paths too. Source: https://nextjs.org/docs/app/guides/data-security. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.
Formal Syntax & Structure
nextjs syntaxnextjs
Cache-Control: private, no-storeWorking Example
Example Snippetnextjs
export function privateArticle(row:{id:string;title:string;revision:number}){return Response.json({id:row.id,title:row.title,revision:row.revision},{headers:{'Cache-Control':'private, no-store'}});}