PageSourceSearch

https://cycomi.com/swConstants.js

js cycomi.com collected 2026-10-02 07:13:30 UTC 1,110 bytes, 33 lines download raw bytes

1export const URL_PATTERN = {
2    START: '/',
3    NEXT_DATA: '/_next/data',
4    NEXT_STATIC: '/_next/static',
5    NEXT_IMAGE: '/_next/image',
6    AKAMAI: 'akamaized.net/',
7    CONTENT: 'cmc-contents',
8    API: '/api/',
9    WELL_KNOWN: '/.well-known/',
10};
11export const CACHE_STORAGE_NAME = {
12    NEXT_DATA: 'next-data',
13    NEXT_STATIC: 'next-static',
14    NEXT_IMAGE: 'next-image',
15    API: 'api',
16    OTHERS: 'others',
17    AKAMAI: 'akamai',
18    CONTENT: 'content',
19};
20export const DEFAULT_TTL = 5 * 60 * 1000;
21export const TTL_OF_DAY_BASE = 24 * 60 * 60 * 1000;
22export const TTL_OF_CACHE = {
23    [CACHE_STORAGE_NAME.NEXT_DATA]: DEFAULT_TTL,
24    [CACHE_STORAGE_NAME.NEXT_STATIC]: DEFAULT_TTL,
25    [CACHE_STORAGE_NAME.NEXT_IMAGE]: DEFAULT_TTL,
26    [CACHE_STORAGE_NAME.API]: DEFAULT_TTL,
27    [CACHE_STORAGE_NAME.OTHERS]: DEFAULT_TTL,
28    [CACHE_STORAGE_NAME.CONTENT]: 7 * TTL_OF_DAY_BASE,
29    [CACHE_STORAGE_NAME.AKAMAI]: 7 * TTL_OF_DAY_BASE,
30};
31export const PRECACHE_STORAGE_NAME = 'precache';
32export const OFFLINE_URL = '/offline.html';
33export const valuesOfCacheStorageName = Object.values(CACHE_STORAGE_NAME);

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.