Skip to content

Commit

Permalink
fix: service worker limiting api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
geromegrignon committed Jun 7, 2024
1 parent ee51ab0 commit 1fb14be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions angular-hub/ngsw-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,17 @@
]
}
}
],
"dataGroups": [
{
"name": "api",
"urls": ["/api/**"],
"cacheConfig": {
"strategy": "freshness",
"maxSize": 100,
"maxAge": "1h",
"timeout": "10s"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
<li>
<a
class="flex gap-4 items-center px-4 py-3 rounded-xl font-bold"
href="https://angular-hub.com/api/v1/swagger"
href="/api/v1/swagger"
target="_blank"
>
<svg
Expand Down

0 comments on commit 1fb14be

Please sign in to comment.