Files
bbs/static/app/sw/sw-toolbox-config.js
T
nikolark 2b5c3529d6 Initial attempt at using Service Worker
- Caches facebook profile pictures and static resources
- Removes django-compressor and commited bower_components
- rest fixes
2015-11-29 16:17:25 +01:00

12 lines
396 B
JavaScript

toolbox.router.get('/(.*)/picture/', toolbox.fastest, {
origin: /^https:\/\/graph\.facebook\.com$/
});
//var MISSING_IMAGE = '/static/dist/images/unknown_person.png';
//toolbox.cache(MISSING_IMAGE);
//
//function imageHandler(request, values, options) {
// return toolbox.cacheFirst(request, values, options).catch(function () {
// return caches.match(MISSING_IMAGE);
// });
//}