Cache Control
The browser uses cache control HTTP headers to avoid extra calls to web servers.
When an API response sets cache-control headers, the fetch request doesn't hit the server again. It just returns the response the server sent before.
The browser uses cache control HTTP headers to avoid extra calls to web servers.
When an API response sets cache-control headers, the fetch request doesn't hit the server again. It just returns the response the server sent before.