nitro
nitro copied to clipboard
Support edge function caching with netlify-edge preset
Describe the feature
The netlify-edge preset does not honour isr caching settings from Nuxt config. This seems to be intended behaviour and properly documented (https://nuxt.com/docs/guide/concepts/rendering#route-rules), although it would be great to support it for edge functions.
Besides the preset change to add the relevant headers, the generated manifest.json file should set caching to manual.
Refs:
- https://docs.netlify.com/edge-functions/optional-configuration/#response-caching
- https://docs.netlify.com/edge-functions/create-integration/
Additional information
- [ ] Would you be willing to help implement this feature?