]> Untitled Git - lemmy-ui.git/blobdiff - webpack.config.js
use badge-muted
[lemmy-ui.git] / webpack.config.js
index ef5717fef35646c1cc1f5dd97b44628316b87a65..51ca81db3e6ce11c21b2d1075f5ccbb515479f58 100644 (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,
+                },
               },
             },
             {