ScandiPWA allows you to update the service worker config by overriding the src/service-worker.js file.
<aside>
ℹ️ The original file is located in the node_modules/@scandipwa/scandipwa/src/ directory.
</aside>
How to work with Service Worker?
There is a specific tutorial on how to invalidate old service workers as well: