We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af51c9e commit 55d7a51Copy full SHA for 55d7a51
layouts/partials/pwa/assets/sw.html
@@ -3,8 +3,13 @@
3
{{/* JS compile options. */}}
4
{{- $precaches := slice }}
5
{{- $langs := slice }}
6
+{{- $host := .Site.BaseURL }}
7
{{/* Get precaches pages. */}}
8
{{- range .Sites }}
9
+ {{/* Do not precache other hosts assets. */}}
10
+ {{- if ne $host .BaseURL }}
11
+ {{- continue }}
12
+ {{- end }}
13
{{- $langs = $langs | append .Language.Lang }}
14
{{- $home := .GetPage "/" }}
15
{{- if not $home }}
0 commit comments