Menu

Add cache tags from Function responses, regardless of framework - Vercel
📰
0

Add cache tags from Function responses, regardless of framework - Vercel

Vercel News·Steven Salat·5 days ago
#OmQPbyCJ
Reading 0:00
15s threshold

You can now add one or more cache tags to your Function response by importing the addCacheTag function from @vercel/functions npm package.

import { addCacheTag } from '@vercel/functions'

Once the cached response has a tag associated with it, you can later invalidate the cache in one of several ways:

Available on all plans and all frameworks.

Learn more about cache invalidation.

Read More