Exercise: HTTP Client Cache

Practice how to create a proxy HTTP client library that caches the response of a given HTTP request.

Problem statement

Write a proxy for your favorite HTTP client library that caches the response of a given HTTP request, so that if you make the same request again, the response is immediately returned from the local cache, rather than being fetched from the remote URL.

Coding challenge

Write your solution code in the following code widget. We’ve already added the package.json file for your ease.

Get hands-on with 1400+ tech skills courses.