Add cache tags from Function responses, regardless of framework

Published: (December 12, 2025 at 08:00 AM EST)
1 min read

Source: Vercel Blog

Add Cache Tags to Function Responses

You can now add one or more cache tags to your Function response by importing the addCacheTag function from the @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:

Back to Blog

Related posts

Read more »

Controlando cache através do navegador

Cache é um mecanismo utilizado para acelerar o acesso a conteúdos frequentemente utilizados. Ao implementar cache em um sistema, é ideal mantê‑lo o mais próximo...