I have configured Nginx as Reverse Proxy in front of Vaadin v21 running on Tomcat. Vaadin is configured with @PWA(..., offlinePath="offline.html"). If Tomcat is offline a 502 Bad Gateway is thrown and displayed by Nginx pointing to its own /50x.html resource. This error handling can be disabled inside nginx.conf. I then expect offline.html to be served from my browsers local storage (cache). However this is not the case. Nginx still serves a default 502 page.
Is it possible to have Nginx reference my browsers local cache just as when I am not having a reverse proxy in front?
If this is not possible I guess I have to create a 502.html and configure it to be served by Nginx as it's own resource.