Qvault.io – Coding courses to launch your tech career I recently had a ticket opened on my team’s backlog board requesting the ability to bypass our API’s caching system. For context, our front-end team uses my team’s API to make fairly heavy requests to ElasticSearch, and one of the features of our API gateway is to cache the results of heavy aggregations for ~30 seconds.

When working in a REST-ish-ful API there are approximately math.MaxInt ways to accomplish that, and some of the first ones that immediately came to mind were: As it turns out, there’s already a standard for this sort of thing, the Cache-Control request directives.

Subscribe to my newsletter for more coding articles delivered straight to your inbox.

Related Articles