Builder content link
Builder public api key
1d8ecee591ac4358befb8fe998100548
What are you trying to accomplish
- I followed this doc and added “cacheSeconds” and “staleCacheSeconds” as the doc recommend, but when previewing the page in our local environment, the cache control does not reflect.
export const getPageModelData = async (slug: string) => {
const pageData = await builder
.get('page', {
userAttributes: {
urlPath: slug,
},
cacheSeconds: 3600,
staleCacheSeconds: 86400,
prerender: false,
options: {
enrich: true,
},
})
.toPromise();
return pageData;
};
Code stack you are integrating Builder with
“next”: “14.1.3”, “@builder.io/react”: "~3.1.2