Browser loses connection until wifi is reset

Basic Information:

Printer Model: Tronxy x5sa-600 (modified)
MCU / Printerboard: octopus pro
Host / SBC: rpi
klippy.log

Describe your issue:

Hi again, now that I’ve managed to resolve my z-offset issues , I’m having another issue. What I’m finding is that I can connect to Mainsail via my browser and interact with my browser without any problems. If I leave the browser window open I can keep an eye on my printer via the webcam and monitor temps etc. However after 10 minutes or so, if I refresh the browser I can’t reconnect - the browser hangs on the initializing screen. If I disconnect my wifi and reconnect, it starts working again.

Before hitting refresh on my browser I can still interact with my printer, but if I try to upload gcode or edit a config file, I get an error.

Can anyone help me with this?
klippy 2.zip (1.4 MB)