[Vuejs]-How to remove multiple network payloads of the save asset that have ?__WB_REVISION in url

0👍

The __WB_REVISION__ parameter requests are generated by Workbox during the precaching step of service worker installation.

If you’re dealing with URLs that already include hashes in them (which appears to be the case), then you can avoid those extra requests by configuring the Workbox build tool being used "under the hood" to recognize those hashes. Setting dontCacheBustURLsMatching: /\.[0-9a-f]{8}\./ would seem to be the right configuration for your usage, where there’s an 8 character hash surrounded by ..

Additionally, if you’re using workbox-webpack-plugin v6.x and webpack v4.40+ or v5.x, you wouldn’t need to configure anything extra, as Workbox will make use of new immutable metadata that webpack adds to assets that include hashes.

Leave a comment