3 ms·
Ah if only I wasn't using vercel and serverless functions!
by anderjaska 6y ago
Ah if only I wasn't using vercel and serverless functions!
- styfle 6y agoYou can add a `Cache-Control` response header with `s-maxage` in your Serverless Function to cache at the Edge. https://vercel.com/docs/v2/serverless-functions/edge-caching https://vercel.com/docs/v2/serverless-functions/edge-caching https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#Expiration https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ca...