Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
1b163179
Commit
1b163179
authored
5 years ago
by
Lukas Mauß
Browse files
Options
Downloads
Patches
Plain Diff
Add new dataGroup for caching static content
parent
8c8d1fc7
1 merge request
!231
Resolve "Improve Service Worker strategy"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ngsw-config.json
+15
-5
15 additions, 5 deletions
ngsw-config.json
with
15 additions
and
5 deletions
ngsw-config.json
+
15
−
5
View file @
1b163179
...
...
@@ -4,26 +4,36 @@
[
{
"name"
:
"api"
,
"urls"
:
[
"/**"
],
"urls"
:
[
"/
api/
**"
],
"cacheConfig"
:
{
"strategy"
:
"freshness"
,
"maxSize"
:
500
,
"timeout"
:
"3s"
,
"maxAge"
:
"7d"
}
},
{
"name"
:
"source"
,
"urls"
:
[
"!/**/*api*"
],
"cacheConfig"
:
{
"strategy"
:
"performance"
,
"maxSize"
:
500
,
"timeout"
:
"3s"
,
"maxAge"
:
"30d"
}
}
],
"assetGroups"
:
[
{
"name"
:
"app"
,
"installMode"
:
"
prefetch
"
,
"updateMode"
:
"
prefetch
"
,
"installMode"
:
"
lazy
"
,
"updateMode"
:
"
lazy
"
,
"resources"
:
{
"files"
:
[
"/favicon.ico"
,
"/*.html"
,
"/*.css"
,
"/*.
j
s"
"/*.
s
css"
,
"/*.
t
s"
],
"urls"
:
[
"https://fonts.googleapis.com/**"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment