-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable Cache Options and Cache Keys on a per Request Basis #25
Comments
Thanks! Glad you found it useful. I'm not against adding something like this, do you have something in mind as far as what the implementation might look like? |
For the customisable cache key I'm thinking of adding another field to With regards to overriding the cache options on a per request basis, I haven't dug much in to it, but the only way I can think of doing this is with a trait implemented for |
Think I generally understand what this might look like, would you care to provide a high level overview of the use case for this just so I understand better?
|
It's essentially a HTTP proxy which allows configuration for different routes. Ah I didn't realise it was a re-export, just seen the note in the main I think an addition of another struct to the |
Sounds good! |
Published new versions of the crates today with the custom cache key changes, thanks for your patience on this! |
I've seen the cache modes added and it would be nice if that could be modified on a per request basis. The use case is we only want to cache certain content types. The idea is to to add a closure in an option which if it exists it can be used to check the request and return an updated cache mode for instances where we want to either bypass the cache or use the cache with the default rules. I'll try knocking up a PR with this. |
Looks great, just merged into develop. Thanks again for your contributions! |
For my current usage of this library it would be great if we could:
Happy to propose a PR and thank you for this amazing crate!
The text was updated successfully, but these errors were encountered: