Skip to content

Commit f78644b

Browse files
committed
refactor(routes): uodate routes config
1 parent a1c8c98 commit f78644b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

public/sw.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,6 @@ const offlineFallbackPage = "ToDo-replace-this-name.html";
1212
const networkFirstPaths = [
1313
/* Add an array of regex of paths that should go network first */
1414
// Example: /\/api\/.*/
15-
16-
"./home",
17-
"./login",
18-
"./register",
19-
"./contact",
20-
"./create",
21-
"./delete",
22-
"./posts",
23-
"./dist/style.css",
24-
"./dist/App.bundle.js",
25-
"./sw.js",
26-
"./pwabuilder.js",
27-
"./manifest.json",
2815
];
2916

3017
const avoidCachingPaths = [

src/routes/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ function wrapAsync(fn: any) {
2323
}
2424

2525
router.get("/", indexController.home);
26-
router.get("/home", indexController.home); // this route will be used by the service worker to cache the homepage
2726
router.get("/contact", indexController.contact);
2827
router.get("/404", indexController.notFound);
2928

0 commit comments

Comments
 (0)