PageSourceSearch

https://www.ymobile.jp/sw.js

js ymobile.jp collected 2026-09-24 09:19:53 UTC 1,339 bytes, 44 lines download raw bytes

1importScripts("/common_c/docs/precache-manifest/ym-manifest.2018101507.js", "https://storage.googleapis.com/workbox-cdn/releases/3.3.1/workbox-sw.js");
2
3if (location.hostname != 'www.ymobile.jp'){
4	workbox.setConfig({debug: true});
5}
6workbox.core.setCacheNameDetails({prefix: "ym-web-2018-09-11-2"});
7
8workbox.skipWaiting();
9workbox.clientsClaim();
10
11workbox.precaching.suppressWarnings();
12workbox.precaching.precacheAndRoute(self.__precacheManifest, {
13	"directoryIndex": "index.html"
14});
15
16
17//登録済みのキャッシュをクリアする
18caches.keys().then(function(keys) {
19	var promises = [];
20	// キャッシュストレージを全て削除する
21	keys.forEach(function(cacheName) {
22		if (cacheName) {
23			promises.push(caches.delete(cacheName));
24		}
25	});
26});
27
28//HTMLのキャッシュをコメントアウト
29/*
30workbox.routing.registerRoute(
31	//スラッシュ区切りでhtmlをキャッシュさせるために不要なファイルの拡張子を除外していく
32	/^((?!.png|gif|jpg|jpeg|svg|js|css|json|xml|icon|ogg|bmp|webp|mp4|ogg|webm).)+$/,
33	workbox.strategies.staleWhileRevalidate({
34		cacheName: 'html-cache',
35		plugins: [
36			new workbox.cacheableResponse.Plugin({
37				"statuses":[0,200]
38			})],
39		"cacheExpiration": {
40			"maxAgeSeconds": 30 * 24 * 60 * 60
41		}
42	}), 'GET');
43*/
44

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.