5 Star 3 Fork 0

Gitee 极速下载/Frontend-Checklist

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/thedaviddias/Front-End-Checklist
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
precache-config.js 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
staticFileGlobs: [
'index.html',
'manifest.json',
'favicon-32x32.png',
'android-chrome-192x192.png',
'favicon-16x16.png',
'safari-pinned-tab.svg',
'mstile-144x144.png',
'browserconfig.xml',
'apple-touch-icon.png'
],
navigateFallback: '/index.html',
navigateFallbackWhitelist: [/^\/user\//],
skipWaiting: true,
runtimeCaching: [
{
urlPattern: '/',
handler: 'networkFirst',
options: {
cache: {
name: 'src'
}
}
},
{
urlPattern: /src/,
handler: 'networkFirst',
options: {
cache: {
name: 'src'
}
}
},
{
urlPattern: /^https:\/\/api\.github\.com\/users\/[^\/]*\?/,
handler: 'cacheFirst',
options: {
cache: {
maxAgeSeconds: 60 * 60 * 4,
name: 'users'
}
}
},
{
urlPattern: /^https:\/\/api\.github\.com\/users\/[^\/]*\/repos\?.*$/,
handler: 'cacheFirst',
options: {
cache: {
maxAgeSeconds: 60 * 60 * 4,
name: 'repos'
}
}
},
{
urlPattern: /^https:\/\/api\.github\.com\/repos/,
handler: 'cacheFirst',
options: {
cache: {
maxAgeSeconds: 60 * 60 * 4,
name: 'contributors'
}
}
},
{
urlPattern: /^https:\/\/.*\.githubusercontent\.com\//,
handler: 'cacheFirst',
options: {
cache: {
maxAgeSeconds: 60 * 60 * 24,
name: 'user-images'
}
}
}
]
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mirrors/Frontend-Checklist.git
git@gitee.com:mirrors/Frontend-Checklist.git
mirrors
Frontend-Checklist
Frontend-Checklist
gh-pages

搜索帮助