@webqit/webflo 0.11.8 → 0.11.9
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/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1265,7 +1265,7 @@ Unless disabled in config, it is factored-in at build time for the application c
|
|
|
1265
1265
|
```json
|
|
1266
1266
|
{ "spa_navigation": true }
|
|
1267
1267
|
```
|
|
1268
|
-
|
|
1268
|
+
</details>
|
|
1269
1269
|
|
|
1270
1270
|
##### SPA State
|
|
1271
1271
|
|
|
@@ -1413,7 +1413,7 @@ Webflo client-side applications are intended to provide an app-like-first experi
|
|
|
1413
1413
|
```json
|
|
1414
1414
|
{ "enable_service_worker": true }
|
|
1415
1415
|
```
|
|
1416
|
-
|
|
1416
|
+
</details>
|
|
1417
1417
|
|
|
1418
1418
|
##### Fetching Strategy
|
|
1419
1419
|
|
|
@@ -1433,7 +1433,7 @@ Webflo client-side applications are intended to provide an app-like-first experi
|
|
|
1433
1433
|
```json
|
|
1434
1434
|
{ "network_first_urls": [ "/logo.png" ] }
|
|
1435
1435
|
```
|
|
1436
|
-
|
|
1436
|
+
</details>
|
|
1437
1437
|
|
|
1438
1438
|
+ **Cache First** - This strategy tells the Service Worker to always attempt fetching from the cache first for given resources, before fetching from the network. After serving a cached response, or where not found in cache, a network fetch happens and a copy of the response is saved to the cache for next time. (This is good for resources that do not critially need to be fresh to the user.) When not the default strategy, a list of specific URLs that should be fetched this way can be configured.
|
|
1439
1439
|
|
|
@@ -1451,7 +1451,7 @@ Webflo client-side applications are intended to provide an app-like-first experi
|
|
|
1451
1451
|
```json
|
|
1452
1452
|
{ "cache_first_urls": [ "/logo.png" ] }
|
|
1453
1453
|
```
|
|
1454
|
-
|
|
1454
|
+
</details>
|
|
1455
1455
|
|
|
1456
1456
|
+ **Network Only** - This strategy tells the Service Worker to always fetch given resources from the network only. They are simply not available when offline. (This is good for resources that critially need to be fresh to the user.) When not the default strategy, a list of specific URLs that should be fetched this way can be configured.
|
|
1457
1457
|
|
|
@@ -1469,7 +1469,7 @@ Webflo client-side applications are intended to provide an app-like-first experi
|
|
|
1469
1469
|
```json
|
|
1470
1470
|
{ "network_only_urls": [ "/logo.png" ] }
|
|
1471
1471
|
```
|
|
1472
|
-
|
|
1472
|
+
</details>
|
|
1473
1473
|
|
|
1474
1474
|
+ **Cache Only** - This strategy tells the Service Worker to always fetch given resources from the cache only. (This is good for resources that do not change often.) When not the default strategy, a list of specific URLs that should be fetched this way can be configured. The listed resources are pre-cached ahead of when they'll be needed - and are served from the cache each time. (Pre-caching happens on the one-time `install` event of the Service Worker.)
|
|
1475
1475
|
|
|
@@ -1487,7 +1487,7 @@ Webflo client-side applications are intended to provide an app-like-first experi
|
|
|
1487
1487
|
```json
|
|
1488
1488
|
{ "cache_only_urls": [ "/logo.png" ] }
|
|
1489
1489
|
```
|
|
1490
|
-
|
|
1490
|
+
</details>
|
|
1491
1491
|
|
|
1492
1492
|
In all cases above, the convention for specifying URLs for a strategy accepts [URL patterns](https://developer.mozilla.org/en-US/docs/Web/API/URLPattern) - against which URLs can be matched on the fly. For example, to place all files in an `/image` directory (and subdirectories) on the *Cache First* strategy, the pattern `/image/*` can be used. To place all `.svg` files in an `/icons` directory (including subdirectories) on the *Cache Only* strategy, the pattern `/icons/*.svg` can be used. (Specifically for the *Cache Only* strategy, patterns are resolved at Service Worker build-time, and each pattern must match, at least, a file.)
|
|
1493
1493
|
|
|
@@ -1729,7 +1729,7 @@ Webflo natively supports OOHTML in full! But it is also possible to switch this
|
|
|
1729
1729
|
```
|
|
1730
1730
|
|
|
1731
1731
|
*Values: `full`, `namespacing`, `scripting`, `templating`, `none` - See [details at OOHTML SSR](https://github.com/webqit/oohtml-ssr#options)*
|
|
1732
|
-
|
|
1732
|
+
</details>
|
|
1733
1733
|
|
|
1734
1734
|
|
|
1735
1735
|
### OOHTML SSR
|