How-to
Managing Vercel Data Cache
Learn how to enable, disable, and manage your usage for Vercel Data CacheTable of Contents
Next.js (/app)
Vercel Data cache is automatically enabled for you when you deploy a Next.js project thats uses App Router and Next.js Cache to Vercel.
Use the following in your Next.js application to opt out of fetch caching:
export const fetchCache = 'force-no-store';
You can also opt out individual fetches by using the cache
option:
const res = await fetch('https://example.com', { cache: 'no-store' });
To view your usage for Data Cache:
- On your dashboard, navigate to the Usage tab.
- Under Data Cache, you'll be able to see your the total usage for your team or account including bandwidth, revalidations, and requests.
You need to have an owner role to perform this task.
In some circumstances, you may need to delete all cached data and force revalidation. You can do this by purging the Data Cache:
- Under your project, go to the Settings tab.
- In the Data Cache section, select Purge Everything.
- On the dialog, confirm that you wish to delete and click the Continue & Purge Everything button.
Purging your Data Cache will create a temporary increase in request times for users as new data needs to be refetched.
Last updated on July 23, 2024
Was this helpful?