-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
23 lines (23 loc) · 949 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#57A71C" />
<meta name="description" content="Simple PWA that allows offline browsing of static site content.
Everything requested is cached and there is an offline page for non-cached content. Cached content is not updated." />
<title>Simple Static PWA</title>
<link rel="manifest" href="/manifest.webmanifest" />
<script defer src="page.js"></script>
</head>
<body>
<div>
<button class="sw_control" onclick="enable_SW()">Enable Caching and Offline</button>
<button class="sw_control" onclick="disable_SW()">Disable Caching and Offline</button>
<button class="sw_control" onclick="clear_caches()">Clear all caches</button>
<p id="sw_message"></p>
</div>
<a href="/offline.html">The offline page</a>
| <a href="/invalid_url">An invalid url</a>
</body>
</html>