-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathngsw-config.json
101 lines (101 loc) · 2.28 KB
/
ngsw-config.json
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html",
"assetGroups": [
{
"name": "app",
"installMode": "prefetch",
"resources": {
"files": [
"/favicon.ico",
"/index.html",
"/manifest.webmanifest",
"/*.css",
"/*.js",
"https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/UI-Farsi-Digits-Non-Latin/Vazirmatn-UI-FD-NL-font-face.css",
"https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap",
"https://fonts.googleapis.com/icon?family=Material+Icons"
]
}
},
{
"name": "assets",
"installMode": "lazy",
"updateMode": "prefetch",
"resources": {
"files": [
"/assets/**",
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
]
}
}
],
"dataGroups": [
{
"name": "news",
"urls": [
"https://kdz.ir/fa/?json=get_posts"
],
"cacheConfig": {
"maxSize": 50,
"maxAge": "1d",
"strategy": "freshness"
}
},
{
"name": "sportInsurance",
"urls": [
"https://api.kdz.ir/api/v1/account/jam/single/sport-insurance"
],
"cacheConfig": {
"maxSize": 50,
"maxAge": "5s",
"strategy": "performance"
}
},
{
"name": "jam",
"urls": [
"https://api.kdz.ir/api/v1/account/jam/can-register"
],
"cacheConfig": {
"maxSize": 50,
"maxAge": "5m",
"strategy": "performance"
}
},
{
"name": "history",
"urls": [
"https://kdz.ir/fa/?json=get_page&id=1036"
],
"cacheConfig": {
"maxSize": 50,
"maxAge": "30d",
"strategy": "performance"
}
},
{
"name": "user-images",
"urls": [
"https://api.kdz.ir/api/v1/files/show/**"
],
"cacheConfig": {
"maxSize": 100,
"maxAge": "5d",
"strategy": "performance"
}
},
{
"name": "outer-images",
"urls": [
"https://file.behroozbc.ir/no_logo.png"
],
"cacheConfig": {
"maxSize": 120,
"maxAge": "50d",
"strategy": "performance"
}
}
]
}