Hacker News new | ask | show | jobs
by anderjaska 2168 days ago
Ah if only I wasn't using vercel and serverless functions!
1 comments

You 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://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Ca...