Move cache manifest to *.appcache

https://github.com/zhukov/webogram/issues/278#issuecomment-43072649
This commit is contained in:
Igor Zhukov 2014-05-14 19:29:12 +04:00
parent f7171d3a5f
commit 8f44739a64
4 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en" ng-app="myApp" manifest="app.manifest"><!-- ng-csp="" -->
<html lang="en" ng-app="myApp" manifest="webogram.appcache"><!-- ng-csp="" -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">

View File

@ -1,6 +1,6 @@
CACHE MANIFEST
# 6
# 7
NETWORK:
*

View File

@ -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'));
});

View File

@ -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',