Browsers are known to cache HTTP resources to save bandwidth and improve performance. I’m not 100% sure about how HTTP cache works in web browsers but I can see sometimes that an object with “cache-control” header with a value of “max-age=3600” (1h), meaning that this object will be cached for 1h in the browser’s cache storage.
However, the domain name in the url of this object has a TTL in its DNS record of only 300s. So if I revisit the website again after more than 300s but within 1h of the last visit, the browser will lookup the domain again since the DNS record is expired. Will the browser also clear the caches associated with that expired domain?