Nocache.js 404 Error

Sometimes, my Vaadin applications do not load, and show a blank page. On the console I see that nocache.js?randomnumber gives a 404. If I understand correctly, this is caused by trying to continue a previously created session if a session id cookie exists, which causes load balancer redirecting to a server that is jammed and hence not serving the file.

The error goes away when I refresh cache, probably because now the session cookie is cleared, and the new request is rerouted to a live instance.

My question is, is there a way to workaround this issue, because asking clients to clear their cache is not idea. Anyone?