From 8f44739a641931b61d4047dbbeca863f2ecbefd5 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 14 May 2014 19:29:12 +0400 Subject: [PATCH] Move cache manifest to *.appcache https://github.com/zhukov/webogram/issues/278#issuecomment-43072649 --- app/index.html | 2 +- app/{app.manifest => webogram.appcache} | 2 +- gulpfile.js | 4 ++-- server.js | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) rename app/{app.manifest => webogram.appcache} (87%) diff --git a/app/index.html b/app/index.html index 45b669f5..4ca7a10d 100644 --- a/app/index.html +++ b/app/index.html @@ -1,5 +1,5 @@ - + diff --git a/app/app.manifest b/app/webogram.appcache similarity index 87% rename from app/app.manifest rename to app/webogram.appcache index 47cf1c68..c8265cb3 100644 --- a/app/app.manifest +++ b/app/webogram.appcache @@ -1,6 +1,6 @@ CACHE MANIFEST -# 6 +# 7 NETWORK: * diff --git a/gulpfile.js b/gulpfile.js index f1974cc0..05a8bb55 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -134,8 +134,8 @@ gulp.task('add-appcache-manifest', function() { .pipe($.manifest({ timestamp: true, network: ['http://*', 'https://*', '*'], - filename: 'app.manifest', - exclude: 'app.manifest' + filename: 'webogram.appcache', + exclude: 'webogram.appcache' })) .pipe(gulp.dest('./dist')); }); diff --git a/server.js b/server.js index c1933d2c..5c8c3447 100755 --- a/server.js +++ b/server.js @@ -81,6 +81,7 @@ StaticServlet.MimeMap = { 'json': 'application/json', 'js': 'application/javascript', 'manifest': 'text/cache-manifest', + 'appcache': 'text/cache-manifest', 'jpg': 'image/jpeg', 'jpeg': 'image/jpeg', 'gif': 'image/gif',