Skip to content

Commit

Permalink
修改 pwa 缓存配置
Browse files Browse the repository at this point in the history
  • Loading branch information
MisaLiu committed Aug 22, 2023
1 parent c59e834 commit cbf079b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
cleanupOutdatedCaches: true,
runtimeCaching: [
{
urlPattern: /\/phi-chart-render(.*?)\.(png|ico|ogg)/,
urlPattern: /\/phi-chart-render(.*?)\.(png|ogg|ico|ttf)/,
handler: 'StaleWhileRevalidate',
options: {
cacheName: 'assets-cache',
Expand Down

0 comments on commit cbf079b

Please sign in to comment.