hydra icon indicating copy to clipboard operation
hydra copied to clipboard

Request caching

Open doomspork opened this issue 10 years ago • 2 comments

How best to handle caching? Should we support individual caching of requests and/or overall endpoint caching? Time based? Header based?

doomspork avatar Dec 22 '15 02:12 doomspork

Yeah this is a tricky one. I think we should support caching at the individual request level. We also have to consider that since this is essentially wrapping other APIs we have that layer of caching to obey/consider as well. In my opinion Hydra should allow for the definer to specify a time-based expiration of Hydra caching, but we should also utilize caching mechanisms from the individual requests within a combined endpoint.

So that makes configuration even more complicated depending on the APIs being combined. Or am I way overthinking this?

jcarouth avatar Dec 22 '15 03:12 jcarouth

So obey Cache-Control but allow people to override it, right? I think that's do-able.

doomspork avatar Dec 22 '15 04:12 doomspork