Next.js Discord

Discord Forum

static sitemap showing old data. Cache issue i think

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Cloudflare, Next.js, Vercel. Purged all cache and set a page rule in cloudflare but nothin seems to work. Looking to display new sitemap data.

2 Replies

@Spectacled bear Cloudflare, Next.js, Vercel. Purged all cache and set a page rule in cloudflare but nothin seems to work. Looking to display new sitemap data.
the sitemap is static by default which mean it will only update the data on rebuild. if this behaviour is not what you want, use route segment config to set it
@Ray the sitemap is static by default which mean it will only update the data on rebuild. if this behaviour is not what you want, use route segment config to set it
Spectacled bearOP
Issue was vercel deploying site with cashed data even tho i purged.

Had too redeploy and disable from cache.