<commit_before>const CACHE_VERSION = 1;

const BASE_CACHE_FILES = [
    '/style.css',
    '/script.js',
    '/search.json',
    '/manifest.json',
    '/favicon.png',
];

const OFFLINE_CACHE_FILES = [
    '/style.css',
    '/script.js',
    '/offline/index.html',
];

const NOT_FOUND_CACHE_FILES = [
    '/style.css',
    '/script.js',
    '/404.html',
];

const OFFLINE_PAGE = '/offline/index.html';
const NOT_FOUND_PAGE = '/404.html';

const CACHE_VERSIONS = {
    assets: 'assets-v' + CACHE_VERSION,
    content: 'content-v' + CACHE_VERSION,
    offline: 'offline-v' + CACHE_VERSION,
    notFound: '404-v' + CACHE_VERSION,
};

// Define MAX_TTL's in SECONDS for specific file extensions
const MAX_TTL = {
    '/': 3600,
    html: 3600,
    json: 86400,
    js: 86400,
    css: 86400,
};

const CACHE_BLACKLIST = [
    (str) => {
       return !str.startsWith('http://localhost') && !str.startsWith('https://iamonuwa.github.io');
    },<commit_msg>Update service-worker cache files<commit_after>const CACHE_VERSION = 1;

const BASE_CACHE_FILES = [
    '/manifest.json',
    '/images/favicon-16x16.png',
    '/css/style.min.css',
    '/css/style-rtl.min.css',
    '/js/app.js'
];

const OFFLINE_CACHE_FILES = [
    '/css/style.min.css',
    '/css/style-rtl.min.css',
    '/js/app.js',
    '/offline/index.html',
];

const NOT_FOUND_CACHE_FILES = [
    '/css/style.min.css',
    '/css/style-rtl.min.css',
    '/js/app.js',
    '/404.html',
];

const OFFLINE_PAGE = '/offline/index.html';
const NOT_FOUND_PAGE = '/404.html';

const CACHE_VERSIONS = {
    assets: 'assets-v' + CACHE_VERSION,
    content: 'content-v' + CACHE_VERSION,
    offline: 'offline-v' + CACHE_VERSION,
    notFound: '404-v' + CACHE_VERSION,
};

// Define MAX_TTL's in SECONDS for specific file extensions
const MAX_TTL = {
    '/': 3600,
    html: 3600,
    json: 86400,
    js: 86400,
    css: 86400,
};

const CACHE_BLACKLIST = [
    (str) => {
       return !str.startsWith('http://localhost') && !str.startsWith('https://iamonuwa.github.io');
    },
{'fraction_non_alphanumeric': 0.17885375494071146, 'fraction_numerical': 0.03458498023715415, 'mean_word_length': 2.9168278529980656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1123265', 'n_tokens_mistral': 843, 'n_tokens_neox': 785, 'n_words': 135}