(context: Discussion with @atinux regarding how to set cache callback options to the renderer handler. This PR, adds a primitive to allow it with advanced usage)
This PR adds a new render:before runtime hook support for renderer handlers (like Nuxt SSR). This hook allows to customize rendering behavior by intercepting the context:
Render function can be overridden or wrapped by setting context.render
A response can be directly generated/handled by setting context.response
Usage is not restricted to caching only and it allows more general customization of renderer behavior but for particularly caching purposes here is an example:
(context: Discussion with @atinux regarding how to set cache callback options to the renderer handler. This PR, adds a primitive to allow it with advanced usage)
This PR adds a new
render:before
runtime hook support for renderer handlers (like Nuxt SSR). This hook allows to customize rendering behavior by intercepting the context:context.render
context.response
Usage is not restricted to caching only and it allows more general customization of renderer behavior but for particularly caching purposes here is an example: