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 @@
<!doctype html> <!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> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no"> <meta name="viewport" content="width=device-width, user-scalable=no">

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

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

4
gulpfile.js

@ -134,8 +134,8 @@ gulp.task('add-appcache-manifest', function() {
.pipe($.manifest({ .pipe($.manifest({
timestamp: true, timestamp: true,
network: ['http://*', 'https://*', '*'], network: ['http://*', 'https://*', '*'],
filename: 'app.manifest', filename: 'webogram.appcache',
exclude: 'app.manifest' exclude: 'webogram.appcache'
})) }))
.pipe(gulp.dest('./dist')); .pipe(gulp.dest('./dist'));
}); });

1
server.js

@ -81,6 +81,7 @@ StaticServlet.MimeMap = {
'json': 'application/json', 'json': 'application/json',
'js': 'application/javascript', 'js': 'application/javascript',
'manifest': 'text/cache-manifest', 'manifest': 'text/cache-manifest',
'appcache': 'text/cache-manifest',
'jpg': 'image/jpeg', 'jpg': 'image/jpeg',
'jpeg': 'image/jpeg', 'jpeg': 'image/jpeg',
'gif': 'image/gif', 'gif': 'image/gif',

Loading…
Cancel
Save