pwa: add application icon to cache (#29361)

This commit is contained in:
Frédéric Péters 2018-12-27 10:44:44 +01:00
parent db1fe8505a
commit 1ebadd603c
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{% load combo gadjo %}
{% load combo gadjo static %}
/* global self, caches, fetch, URL, Response */
'use strict';
@ -25,7 +25,8 @@ function urlB64ToUint8Array(base64String) {
var config = {
version: 'v{{ version }}',
staticCacheItems: [
'/__pwa__/offline/'
'/__pwa__/offline/',
'{% static "" %}{{ css_variant }}/{{ icon_prefix }}{{icon_sizes|last}}px.png'
],
cachePathPattern: /^\/static\/.*/,
handleFetchPathPattern: /.*/,