@cocreate/pwa 1.18.0 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/docs/index.html +0 -6
- package/package.json +1 -1
- package/src/service-worker.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.18.2](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.18.1...v1.18.2) (2024-02-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Removed https://cdn.cocreate.app/latest/CoCreate.min.css ([03e4be8](https://github.com/CoCreate-app/CoCreate-pwa/commit/03e4be884c707cc2d200aba42c44ea8d8e012dd9))
|
|
7
|
+
|
|
8
|
+
## [1.18.1](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.18.0...v1.18.1) (2023-12-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* networkResponse conditions ([4fb4439](https://github.com/CoCreate-app/CoCreate-pwa/commit/4fb443934b5f68cfe2bd1f5955bfe4521006a853))
|
|
14
|
+
|
|
1
15
|
# [1.18.0](https://github.com/CoCreate-app/CoCreate-pwa/compare/v1.17.0...v1.18.0) (2023-11-25)
|
|
2
16
|
|
|
3
17
|
|
package/docs/index.html
CHANGED
|
@@ -18,12 +18,6 @@
|
|
|
18
18
|
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
19
|
<meta name="robots" content="index,follow" />
|
|
20
20
|
|
|
21
|
-
<!-- CoCreate CSS -->
|
|
22
|
-
<link
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
href="https://cdn.cocreate.app/latest/CoCreate.min.css"
|
|
25
|
-
type="text/css" />
|
|
26
|
-
|
|
27
21
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
28
22
|
</head>
|
|
29
23
|
|
package/package.json
CHANGED
package/src/service-worker.js
CHANGED
|
@@ -63,11 +63,11 @@ self.addEventListener("fetch", async (e) => {
|
|
|
63
63
|
if (storageHeader)
|
|
64
64
|
storage = storageHeader
|
|
65
65
|
|
|
66
|
-
if (cacheType && cacheType !== 'false') {
|
|
66
|
+
if (cacheType && cacheType !== 'false' && networkResponse.status === 200) {
|
|
67
67
|
console.log('caching')
|
|
68
68
|
|
|
69
69
|
caches.open(cacheName).then((cache) => {
|
|
70
|
-
if (networkResponse.status !== 206
|
|
70
|
+
if (networkResponse.status !== 206) {
|
|
71
71
|
const networkModified = networkResponse.headers.get('last-modified');
|
|
72
72
|
// if (!networkModified) {
|
|
73
73
|
// networkResponse.headers.set('Last-Modified', new Date().toISOString());
|