forked from wardhanster/Bug-Reporter7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache.php
More file actions
62 lines (54 loc) · 1.36 KB
/
Copy pathcache.php
File metadata and controls
62 lines (54 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
header('Content-Type: text/cache-manifest');
$filesToCache = array(
'./index.html',
'./css/framework7.css',
'./css/framework7.themes.css',
'./css/bugreporter7.less.css',
'./frames/bugs/bugs-archived.html',
'./frames/bugs/bugs-closed.html',
'./frames/bugs/bugs-open.html',
'./frames/settings/index.html',
'./frames/settings/about/index.html',
'./frames/settings/about/license.html',
'./frames/settings/design/theme.html',
'./frames/settings/design/tint.html',
'./frames/settings/design/timed-theme-schedule.html',
'./frames/settings/update/index.html',
'./frames/settings/update/update-detail.html',
'./frames/getting-started.html',
'./frames/getting-started~ipad.html',
'./img/demo_groups.png',
'./img/demo_notifications.png',
'./img/demo_overview.png',
'./img/demo_submit.png',
'./img/demo_themes.png',
'./img/demo_timed-theme.png',
'./img/demo_universal.png',
'./img/bug_1.png',
'./img/bug_1@2x.png',
'./img/ios8.png',
'./iTunesArtwork.png',
'./js/bugreporter7.js',
'./js/cookies.js',
'./js/framework7.min.js',
'./js/jquery.js'
);
?>
CACHE MANIFEST
CACHE:
<?php
// Print files that we need to cache and store hash data
$hashes = '';
foreach($filesToCache as $file) {
echo $file."\n";
$hashes.=md5_file($file);
};
?>
NETWORK:
*
update.json
EXTERNAL:
update.json
# Hash Version: <?=md5($hashes)?>
# Update Hash: <?=md5_file("./update.json")?>