During normal browser caching, will a browser re-fetch all file contents if the web server breaks and reopens a tcp connection to the client?
Or will it still cache all contents and only update what has changed, upon the new socket (no difference)?
Thanks!
Browsers operate via HTTP protocol. What they can cache and for how long is determined by special instructions of the HTTP protocol (e.g. cache-control header).
Those instructions can be specified by web server. On the other hand browsers can try to cache as much as possible unless it is forbidden by special HTTP instruction or it violates HTTP protocol, or leads to unpredictable behaviour.
Concerning caching and new TCP connections: TCP here is a mere transport for HTTP protocol, so it should have no impact on browser cache.