Move cache manifest to *.appcache
https://github.com/zhukov/webogram/issues/278#issuecomment-43072649
This commit is contained in:
parent
f7171d3a5f
commit
8f44739a64
@ -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">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
|
|
||||||
# 6
|
# 7
|
||||||
|
|
||||||
NETWORK:
|
NETWORK:
|
||||||
*
|
*
|
@ -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'));
|
||||||
});
|
});
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user