mirror of
https://github.com/cotes2020/chirpy-starter.git
synced 2025-04-21 20:03:27 +10:00
58 lines
1.1 KiB
JavaScript
58 lines
1.1 KiB
JavaScript
const resource = [
|
|
/* --- CSS --- */
|
|
'/assets/css/jekyll-theme-chirpy.css',
|
|
|
|
/* --- PWA --- */
|
|
'/app.js',
|
|
'/sw.js',
|
|
|
|
/* --- HTML --- */
|
|
'/index.html',
|
|
'/404.html',
|
|
|
|
|
|
'/categories/',
|
|
|
|
'/tags/',
|
|
|
|
'/archives/',
|
|
|
|
'/about/',
|
|
|
|
|
|
/* --- Favicons & compressed JS --- */
|
|
|
|
|
|
'/assets/img/favicons/android-chrome-192x192.png',
|
|
'/assets/img/favicons/android-chrome-512x512.png',
|
|
'/assets/img/favicons/apple-touch-icon.png',
|
|
'/assets/img/favicons/favicon-16x16.png',
|
|
'/assets/img/favicons/favicon-32x32.png',
|
|
'/assets/img/favicons/favicon.ico',
|
|
'/assets/img/favicons/mstile-150x150.png',
|
|
'/assets/js/dist/categories.min.js',
|
|
'/assets/js/dist/commons.min.js',
|
|
'/assets/js/dist/home.min.js',
|
|
'/assets/js/dist/misc.min.js',
|
|
'/assets/js/dist/page.min.js',
|
|
'/assets/js/dist/post.min.js'
|
|
];
|
|
|
|
/* The request url with below domain will be cached */
|
|
const allowedDomains = [
|
|
|
|
|
|
'localhost:4000',
|
|
|
|
|
|
|
|
'fonts.gstatic.com',
|
|
'fonts.googleapis.com',
|
|
'cdn.jsdelivr.net',
|
|
'polyfill.io'
|
|
];
|
|
|
|
/* Requests that include the following path will be banned */
|
|
const denyUrls = [];
|
|
|