Igor Zhukov 11 years ago
parent
commit
8f44739a64
  1. 2
      app/index.html
  2. 2
      app/webogram.appcache
  3. 4
      gulpfile.js
  4. 1
      server.js

2
app/index.html

@ -1,5 +1,5 @@ @@ -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">

2
app/app.manifest → app/webogram.appcache

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

4
gulpfile.js

@ -134,8 +134,8 @@ gulp.task('add-appcache-manifest', function() { @@ -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'));
});

1
server.js

@ -81,6 +81,7 @@ StaticServlet.MimeMap = { @@ -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',

Loading…
Cancel
Save