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:
SleeplessOne1917 2023-05-16 13:08:52 +00:00 committed by GitHub
parent 9d8c7dfb0c
commit 0d30f4c731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 141 additions and 60 deletions

View file

@ -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,
},
},
},
{