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
Is your feature request related to a problem? Please describe.
There are workarounds for this, however it could be better to have a wolverine feature for it.
Describe the solution you'd like
An easy and clean way to apply caching in response headers. Maybe an attribute? Extension methods on wolverine http methods?
Describe alternatives you've considered
Extension methods to IResult to apply httpContext.Response.Headers.CacheControl. Have also tried middleware to apply caching but struggled getting a parameter passed in for the cache duration etc. Each endpoint should ideally have its own caching options, or maybe having global profiles will also help for those endpoints that just need the general cache time applied.
Additional context
Here is an example of a basic setup. (Can ignore the fusion cache part, this is just for less calls to the database/ handler logic). We are looking for less calls to the API itself:
Is your feature request related to a problem? Please describe.
There are workarounds for this, however it could be better to have a wolverine feature for it.
Describe the solution you'd like
An easy and clean way to apply caching in response headers. Maybe an attribute? Extension methods on wolverine http methods?
Describe alternatives you've considered
Extension methods to IResult to apply httpContext.Response.Headers.CacheControl. Have also tried middleware to apply caching but struggled getting a parameter passed in for the cache duration etc. Each endpoint should ideally have its own caching options, or maybe having global profiles will also help for those endpoints that just need the general cache time applied.
Additional context
Here is an example of a basic setup. (Can ignore the fusion cache part, this is just for less calls to the database/ handler logic). We are looking for less calls to the API itself:
Thanks for reading :)
The text was updated successfully, but these errors were encountered: