forked from MapComplete/MapComplete
Fix link in docs, add 'localhost' and gitpod to non-caching version of serviceworkers
This commit is contained in:
parent
536840ba1c
commit
13579e6c97
3 changed files with 4 additions and 4 deletions
|
@ -322,7 +322,7 @@ Every field is documented in the source code itself - you can find them here:
|
|||
|
||||
- [The top level `LayoutConfig`](https://github.com/pietervdvn/MapComplete/blob/master/Models/ThemeConfig/Json/LayoutConfigJson.ts)
|
||||
- [A layer object `LayerConfig`](https://github.com/pietervdvn/MapComplete/blob/master/Models/ThemeConfig/Json/LayerConfigJson.ts)
|
||||
- [The `TagRendering`](https://github.com/pietervdvn/MapComplete/blob/master/Models/ThemeConfig/Json/TagRenderingConfigJson.ts)
|
||||
- [The `TagRendering`](https://github.com/pietervdvn/MapComplete/blob/master/Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson.ts)
|
||||
- At last, the exact semantics of tags are documented [here](Tags_format.md)
|
||||
|
||||
A JSON schema file is available in `Docs/Schemas` - use `LayoutConfig.schema.json` to validate a theme file.
|
||||
|
|
|
@ -71,7 +71,7 @@ self.addEventListener('fetch',
|
|||
event.respondWith(new Response(JSON.stringify({"service-worker-version": version})));
|
||||
return
|
||||
}
|
||||
const shouldBeCached = origin.host === requestUrl.host && origin.host !== "127.0.0.1:1234"
|
||||
const shouldBeCached = origin.host === requestUrl.host && origin.host !== "127.0.0.1:1234" && origin.host !== "localhost" && !origin.host.endsWith(".gitpod.io")
|
||||
if (!shouldBeCached) {
|
||||
console.log("Not intercepting ", requestUrl.toString(), origin.host, requestUrl.host)
|
||||
// We return _without_ calling event.respondWith, which signals the browser that it'll have to handle it himself
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue