Make admin UI for allowing/blocking instances easier to work with (#1012)
* Make admin UI for allowing/blocking instances easier to work with * Tweak styles * Remove log statements * Trim instance names and slight refactor * Use linkEvent
This commit is contained in:
parent
9d8c7dfb0c
commit
0d30f4c731
3 changed files with 141 additions and 60 deletions
|
@ -123,9 +123,12 @@ const createClientConfig = (_env, mode) => {
|
|||
urlPattern: ({ url: { pathname, host }, sameOrigin }) =>
|
||||
(sameOrigin || host.includes("localhost")) &&
|
||||
pathname.includes("static"),
|
||||
handler: "CacheFirst",
|
||||
handler: mode === "development" ? "NetworkFirst" : "CacheFirst",
|
||||
options: {
|
||||
cacheName: "static-cache",
|
||||
expiration: {
|
||||
maxAgeSeconds: 60 * 60 * 24,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue