Sha256: c94fa2ae54d68145ae7ede43ed10f9b2204dc50365ead670fd88f08e8d68321e

Contents?: true

Size: 1.25 KB

Versions: 13

Compression:

Stored size: 1.25 KB

Contents

---
layout: compress
# The list to be cached by PWA
---

const resource = [
  /* --- CSS --- */
  '{{ "/assets/css/:THEME.css" | replace: ':THEME', site.theme | relative_url }}',

  /* --- PWA --- */
  '{{ "/app.js" | relative_url }}',
  '{{ "/sw.js" | relative_url }}',

  /* --- HTML --- */
  '{{ "/index.html" | relative_url }}',
  '{{ "/404.html" | relative_url }}',

  {% for tab in site.tabs %}
    '{{ tab.url | relative_url }}',
  {% endfor %}

  /* --- Favicons & compressed JS --- */
  {% assign cache_list = site.static_files | where: 'swcache', true  %}
  {% for file in cache_list %}
    '{{ file.path | relative_url }}'{%- unless forloop.last -%},{%- endunless -%}
  {% endfor %}
];

/* The request url with below domain will be cached */
const allowedDomains = [
  {% if site.google_analytics.id != empty and site.google_analytics.id %}
    'www.googletagmanager.com',
    'www.google-analytics.com',
  {% endif %}

  '{{ site.url | split: "//" | last }}',

  {% if site.img_cdn contains '//' and site.img_cdn %}
    '{{ site.img_cdn | split: '//' | last | split: '/' | first }}',
  {% endif %}

  'fonts.gstatic.com',
  'fonts.googleapis.com',
  'cdn.jsdelivr.net',
  'polyfill.io'
];

/* Requests that include the following path will be banned */
const denyUrls = [];

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
jekyll-theme-chirpy-6.4.2 assets/js/data/swcache.js
jekyll-theme-chirpy-6.4.1 assets/js/data/swcache.js
jekyll-theme-chirpy-6.4.0 assets/js/data/swcache.js
jekyll-theme-coo-6.4 assets/js/data/swcache.js
jekyll-theme-coo-6.3.12 assets/js/data/swcache.js
jekyll-theme-coo-6.3.11 assets/js/data/swcache.js
jekyll-theme-coo-6.3.10 assets/js/data/swcache.js
jekyll-theme-coo-6.3.9 assets/js/data/swcache.js
jekyll-theme-chirpy-6.3.1 assets/js/data/swcache.js
jekyll-theme-chirpy-6.3.0 assets/js/data/swcache.js
jekyll-theme-chirpy-6.2.3 assets/js/data/swcache.js
jekyll-theme-chirpy-6.2.2 assets/js/data/swcache.js
jekyll-theme-chirpy-6.2.1 assets/js/data/swcache.js