PageSourceSearch

https://www.banggood.com/service-worker.js?v=0118

js banggood.com collected 2026-09-24 06:23:28 UTC 4,346 bytes, 1 lines download raw bytes

1importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.0.0/workbox-sw.js"),workbox.setConfig({debug:!1}),workbox.core.skipWaiting(),workbox.core.clientsClaim();const cacheVersion="v1.2",cacheListArr=["bg:threeparty","bg:img","bg:static"];cacheListArr.forEach((t,e)=>{cacheListArr[e]=`${t}-v1.2`}),self.addEventListener("install",t=>{t.waitUntil(Promise.all([self.skipWaiting()]))}),self.addEventListener("activate",t=>{t.waitUntil(Promise.all([self.clients.claim(),caches.keys().then(t=>{return Promise.all(t.map(t=>{if(cacheListArr.find(e=>t.indexOf(e)>-1))return Promise.resolve();return caches.delete(t)}))})]))});const cdnImagesCacheFn=()=>{const t=new workbox.expiration.CacheExpiration(cacheListArr[1],{maxAgeSeconds:2592e3,maxEntries:1e3,purgeOnQuotaError:!0}),e=[/^https:\/\/img(\d+)?\.bgxcdn\.com/,/^https:\/\/(img|imgaz\d*)\.staticbg\.com/];self.addEventListener("fetch",s=>{e.forEach(e=>{if(e.test(s.request.url)){const e=s.request.clone();s.respondWith(caches.match(e).then(s=>s||fetch(e.url).then(s=>{if(!s||200!==s.status)return s;const a=s.clone();return s.clone().blob().then(()=>{caches.open(cacheListArr[1]).then(s=>{s.put(e,a).then(()=>{t.updateTimestamp(e.url).then(()=>{t.expireEntries()})})})}),s}).catch(()=>null)))}})})};cdnImagesCacheFn();const staticCatheFn=()=>{[/^https:\/\/s\.staticbg\.com\/[^\.]+?\.(jpeg|gif|png|jpg|webp|css|js)/,/^https:\/\/(gbeta\d*|(\w){2,}pre(0?))\.banggood\.com(\S)+\.(jpeg|gif|png|jpg|webp|css|js)/,/^https:\/\/static\.hiselling\.com(\S)+\.(jpeg|gif|png|jpg|webp|css|js)/,/^https:\/\/psr\.staticbg\.com\/rum\/monitor\.min\.js/].forEac
1h(t=>{workbox.routing.registerRoute(t,new workbox.strategies.StaleWhileRevalidate({cacheName:cacheListArr[2],plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}))});[/^https:\/\/(\S)+\/web\/(src|dev)\/(fonts|static\/font)\/[^\.]+?\.?(\w+)?\.(ttf|woff|woff2)/,/^https:\/\/static\.hiselling\.com(\S)+\.(ttf|woff|woff2)/].forEach(t=>{workbox.routing.registerRoute(t,new workbox.strategies.CacheFirst({cacheName:cacheListArr[2],plugins:[new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]}),new workbox.expiration.ExpirationPlugin({maxEntries:10,maxAgeSeconds:2592e3,purgeOnQuotaError:!0})]}))})};staticCatheFn();const thirdCacheFn=()=>{["^https?://dc[^\\.]*?.banggood.com/dc/release/bgd.js","^https?://translate.googleapis.com/element/TE_20200210_00/e/js/element/element_main.js","^https?://translate.googleapis.com/translate_static/js/element/main_zh-CN.js","^https?://www.google-analytics.com/analytics.js","^https?://www.google-analytics.com/plugins/ua/ec.js","^https?://www.googleadservices.com/pagead/conversion_async.js","^https?://www.googletagmanager.com/gtag/js?","^https?://www.googletagmanager.com/gtm.js","^https?://connect.facebook.net/.+?.js"].forEach(t=>{workbox.routing.registerRoute(new RegExp(t),new workbox.strategies.StaleWhileRevalidate({cacheName:cacheListArr[0],plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:300,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}))});["^https?://static.criteo.net/js/ld/ld.js","^https?://static.ads-twitter.com/uwt.js","^https?://cdn.trmit.com/static/js/retag.min.js","^https?://t.cfjump.com/tag/43831","^https?://s.pinimg.com/ct/core.js","^https?://static.accesstrade.vn/js/trackingtag/tracking.min.js","^https?://analytics.webgains.io/clk.min.js","^https?://cdn.trackmytarget.com/tracking/s/entrypoint.min.js","^https?://bat.bing.com/bat.js","^https?://s.pinimg.com/ct/lib/main.40866ede.js","^https?://www.rtb123.com/tags/60CE2906-6735-5900-A7B5-B13CEA2B4908/btp.js","^https?://www.artfut.com/static/tracking.min.js","^https?://www.artfut.com/static/crossdevice.min.js","^https?://banggoodcom.push.world/https.embed.js","^https?://webtrafficsource.com/js/v1/rtg.js","^https?://s.yimg.com/wi/ytc.js","^https?://cdn.onesignal.com/sdks/OneSignalSDK.js","^https?://api.imotech.video/ad/events.js?pixel_id=901372439387345152","^https?://browser.sentry-cdn.com/6.12.0/bundle.min.js"].forEach(t=>{workbox.routing.registerRoute(new RegExp(t),new workbox.strategies.CacheFirst({cacheName:cacheListArr[0],plugins:[new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]}),new workbox.expiration.ExpirationPlugin({maxEntries:300,maxAgeSeconds:604800,purgeOnQuotaError:!0})]}))})};thirdCacheFn();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.