-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
43 lines (36 loc) · 1.28 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
module.exports = {
pwa : {
workboxOptions : {
runtimeCaching: [{
// Match any request from our domain
// TODO: googleapis and cloudflare
urlPattern: 'https://tmdesigned.com/wp/wp-content/.*',
// Apply a cache-first strategy.
handler: 'cacheFirst',
options: {
// Use a custom cache name.
cacheName: 'tmd-media-cache',
expiration: {
maxEntries: 50,
}
}
},
{
// Match any request from our domain
// TODO: googleapis and cloudflare
urlPattern: 'https://tmdesigned.com/wp/wp-json/.*',
// Apply a cache-first strategy.
handler: 'networkFirst',
options: {
// Use a custom cache name.
cacheName: 'tmd-post-cache',
expiration: {
maxEntries: 50,
}
}
}],
navigateFallback : '/index.html',
navigateFallbackWhitelist: [/^(?!\/wp\/).*/]
}
}
}