nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Support edge function caching with netlify-edge preset

Open peralta opened this issue 10 months ago • 0 comments

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?

peralta avatar Mar 25 '25 16:03 peralta