Skip to content

Commit a1c8c98

Browse files
committed
fix(sw.js): update API the bloats app on cache storage
1 parent 84a3623 commit a1c8c98

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

public/sw.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ 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",
1528
];
1629

1730
const avoidCachingPaths = [
@@ -27,6 +40,8 @@ const avoidCachingPaths = [
2740
/\/auth\/.*/,
2841
/\/socket.io\/.*/,
2942
/\/avatar\/.*/,
43+
/\/delete\/.*/,
44+
/\/create\/.*/,
3045

3146
"https://source.unsplash.com",
3247
"https://code.jquery.com/jquery-3.2.1.slim.min.js",

views/mixins/_postForm.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ mixin postForm(post = {})
1818
.col-md-12
1919
.form-group
2020
label(for="description") Description of your Post *
21-
input#description.form-control(type="text" name="description" value=post.description placeholder="It was a brown stylish fox that jumped over the fence of the next neighbor." required="required" minlength="10")
21+
textarea#description.form-control(type="text" name="description" value=post.description placeholder="It was a brown stylish fox that jumped over the fence of the next neighbor." required="required" minlength="10")
2222

2323
.col-md-12
2424
input.btn.btn-success.btn-send(type="submit" value="Save Post")

0 commit comments

Comments
 (0)