Generating a precache manifest for service workers
So you shouldn't try to come up with a hashed file naming scheme for busting the cache; instead use one of Workbox's Strategies -- I think a great pattern for what you're trying to do is Stale While Revalidate

TL;DR Workbox has strategies for doing what you're trying to do.