Sha256: 0d4db981ad5d6ca30c02f803ad7f3657301577cbe6454070b3f607106ff00457
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
--- layout: compress permalink: '/:path/swconf.js' # Note that this file will be fetched by the ServiceWorker, so it will not be cached. --- const swconf = { {% if site.pwa.cache.enabled %} cacheName: 'chirpy-{{ "now" | date: "%s" }}', {%- comment -%} Resources added to the cache during PWA installation. {%- endcomment -%} resources: [ '{{ "/assets/css/:THEME.css" | replace: ':THEME', site.theme | relative_url }}', '{{ "/" | relative_url }}', {% for tab in site.tabs %} '{{- tab.url | relative_url -}}', {% endfor %} {% assign cache_list = site.static_files | where: 'swcache', true %} {% for file in cache_list %} '{{ file.path | relative_url }}'{%- unless forloop.last -%},{%- endunless -%} {% endfor %} ], interceptor: { {%- comment -%} URLs containing the following paths will not be cached. {%- endcomment -%} paths: [ {% for path in site.pwa.cache.deny_paths %} {% unless path == empty %} '{{ path | relative_url }}'{%- unless forloop.last -%},{%- endunless -%} {% endunless %} {% endfor %} ], {%- comment -%} URLs containing the following prefixes will not be cached. {%- endcomment -%} urlPrefixes: [ {% if site.analytics.goatcounter.id != nil and site.pageviews.provider == 'goatcounter' %} 'https://{{ site.analytics.goatcounter.id }}.goatcounter.com/counter/' {% endif %} ] }, purge: false {% else %} purge: true {% endif %} };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-chirpy-7.1.1 | assets/js/data/swconf.js |
jekyll-theme-chirpy-7.1.0 | assets/js/data/swconf.js |