Initial attempt at using Service Worker

- Caches facebook profile pictures and static resources
- Removes django-compressor and commited bower_components
- rest fixes
This commit is contained in:
nikolark committed 2015-11-29 16:17:25 +01:00
1 parent 195c49b0fd
commit 2b5c3529d6
468 files changed
+376 -96983

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
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);
// });
//}