从Function响应中添加缓存标签,不限框架

来源: Vercel News

原文

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