By default, [[k6 (tool)|k6]] has no [[Cache]] and does not have an implementation to prevent resources from being requested depending on HTTP response codes, such as would be in a browser.
The best way to implement a cache in k6 is to:
- request new versions of cached data when
- parse header manually and follow directives of `Cache-Control`from the server (like not requesting it again until the cache expires)