API with NestJS #58. Using ETag to implement cache and save bandwidth
We’ve introduced various ways of caching files on the server throughout this series. This article teaches how to help the browser perform caching on the client side. We use the entity tag (ETag) response header to do that. Imagine having a GET /user/[user-id]/avatar endpoint that responds with an image. The browser calls it every time we […]