I am confused by the way Firefox shows loaded resources as cached
but then I can see the browser issues new DNS query for the domain name and contact the HTTP server again.
Below is a simple example of this behavior. I visited https://example.com then reload the webpage. As expected, the loaded resources are shown as cached
. But, at the same time, I run tcpdump in background and notice that the browser issues DNS query for example.com
again and also connects to the HTTP server after getting the DNS response.
Is this an expected behavior or am I missing something?
Thank you for reading my question <3