Standalone PWA slow performance on iOS 16

I'm currently developing a React (non Native) PWA. It runs perfectly fine on Safari but if I add it to the home screen to run it on standalone mode the performance is much worse. I've had this issue on the iOS 16 betas and now on the official release too.

If I go into Settings > Safari > Clear History and Website Data the performance improves but only for a while.

Any ideas what could be causing this?

After I rewrote Service-worker.js, this problem has been solved.

Can u xplain how you rewrote service worker.js I’m also experiencing same issue.

@CaryHsieh what did you do to fix this I’m seeing same thing

Standalone PWA slow performance on iOS 16
 
 
Q