You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a cacheHandler option to the nitro config would allow applications and modules to customize the caching behavior of nitro.
I'm thinking one approach could be to mimic the behavior of errorHandler. (But not allowing an array) Here the cache handler could be imported from #nitro-internal-virtual/cache-handler instead which would resolve to the configured handler if provided, or fallback to the default one.
Describe the feature
Based on this comment
Adding a
cacheHandler
option to the nitro config would allow applications and modules to customize the caching behavior of nitro.I'm thinking one approach could be to mimic the behavior of
errorHandler
. (But not allowing an array) Here the cache handler could be imported from#nitro-internal-virtual/cache-handler
instead which would resolve to the configured handler if provided, or fallback to the default one.https://nitro.build/config#errorhandler
Additional information
The text was updated successfully, but these errors were encountered: