Give caller the ability to request caching on a per call basis
Currently calls to the Microsoft Graph/O365 api appear to ignore the cache-control/max-age headers sent by the caller, and nothing is ever cached.
It would be good if we could define the max-age when calling and this be reflected in the response. This would allow us to easily use browser cache for calls which should be updated infrequently without writing our own custom caching.
To add to my comment, according to this survey https://www.mnot.net/blog/2017/03/16/browser-caching by mnot, only Firefox and Safari had support for max-stale as of last year.
The cache-control directive max-age is a response header only and would be ignored in the request. https://tools.ietf.org/html/rfc7234#section-184.108.40.206 If a response contains a cache-control: private header then the browser can cache it. If no max-age header is provided by the server then the browser will use its own heuristics to determine how long it can be cached for.
Depending on the browser you may be able to send the max-stale cache control directive to tell the browser that you want it to serve content that is older than it normally would serve from the cache. I don't know what browser support is like for max-stale. https://tools.ietf.org/html/rfc7234#section-220.127.116.11