Sha256: 2494ee51afb9b8b14232a1c6cd33a96955c167aab7d0418779c35ca798fe94da

Contents?: true

Size: 1.66 KB

Versions: 14

Compression:

Stored size: 1.66 KB

Contents

---
layout: compress

# The list to be cached by PWA
---

const resource = [

  /* --- CSS --- */
  '{{ "/assets/css/style.css" | relative_url }}',

  /* --- JavaScripts --- */
  {% assign js_path = "/assets/js" | relative_url %}
  '{{ js_path }}/dist/home.min.js',
  '{{ js_path }}/dist/page.min.js',
  '{{ js_path }}/dist/post.min.js',
  '{{ js_path }}/dist/categories.min.js',
  '{{ js_path }}/data/search.json',
  '{{ "/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 --- */
  {% assign favicon_path = "/assets/img/favicons" | relative_url %}

  '{{ favicon_path }}/android-chrome-192x192.png',
  '{{ favicon_path }}/android-chrome-512x512.png',
  '{{ favicon_path }}/apple-touch-icon.png',
  '{{ favicon_path }}/favicon-16x16.png',
  '{{ favicon_path }}/favicon-32x32.png',
  '{{ favicon_path }}/favicon.ico',
  '{{ favicon_path }}/mstile-150x150.png',
  '{{ favicon_path }}/site.webmanifest',
  '{{ favicon_path }}/browserconfig.xml'

];

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

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

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

/* Requests that include the following path will be banned */
const denyUrls = [
  {% if site.google_analytics.pv.cache_path %}
    '{{ site.google_analytics.pv.cache_path | absolute_url }}'
  {% endif %}
];

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jekyll-theme-chirpy-5.0.2 assets/js/data/swcache.js
jekyll-theme-chirpy-5.0.1 assets/js/data/swcache.js
jekyll-theme-chirpy-5.0.0 assets/js/data/swcache.js
jekyll-theme-chirpy-4.3.4 assets/js/data/swcache.js
jekyll-theme-chirpy-4.3.3 assets/js/data/swcache.js
jekyll-theme-chirpy-4.3.2 assets/js/data/swcache.js
jekyll-theme-chirpy-4.3.1 assets/js/data/swcache.js
jekyll-theme-chirpy-4.3.0 assets/js/data/swcache.js
jekyll-theme-chirpy-4.2.1 assets/js/data/swcache.js
jekyll-theme-chirpy-4.2.0 assets/js/data/swcache.js
jekyll-theme-chirpy-4.1.1 assets/js/data/swcache.js
jekyll-theme-chirpy-4.1.0 assets/js/data/swcache.js
jekyll-theme-chirpy-4.0.2 assets/js/data/swcache.js
jekyll-theme-chirpy-4.0.1 assets/js/data/swcache.js