kwhitley / apicache

Simple API-caching middleware for Express/Node.
MIT License
1.24k stars 193 forks source link

Set X-Cache in response header #254

Open dany68 opened 1 year ago

dany68 commented 1 year ago

Hi,

Thanks for the library. Is it possible to know client-side when a content is retrieved from the cache ? I would like to define a X-Cache header returning true or false depending from where the content is retrieved. I don't find anything on the documentation about that.

Thanks for the help,