Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <?php | |
| 2 header("Cache-Control: no-cache, must-revalidate"); | |
| 3 header("Pragma: no-cache"); | |
| 4 header('Content-Type:application/javascript'); | |
| 5 | |
| 6 echo '// ', microtime(); | |
| 7 ?> | |
| 8 | |
| 9 addEventListener('fetch', function(event) { | |
| 10 return; | |
| 11 }); | |
|
nhiroki
2016/08/19 14:32:53
Is this noop handler necessary?
shimazu
2016/08/22 02:38:10
Yes, necessary. This is for the browser not to ski
nhiroki
2016/08/22 06:35:49
I may not still understand this.
'install' and 'a
shimazu
2016/08/22 09:29:40
Yes, install and activate will be fired when regis
nhiroki
2016/08/22 12:41:37
I see, thank you for the clarification. Keeping a
nhiroki
2016/08/23 01:31:46
By the way, if this test depends on Chromium-speci
shimazu
2016/08/23 01:53:52
Added a comment.
This optimization has been alrea
| |
| 12 | |
| 13 addEventListener('install', function(event) { | |
| 14 console.log('install; skipwaiting'); | |
|
nhiroki
2016/08/19 14:32:53
Please remove console logs.
shimazu
2016/08/22 02:38:10
Oops, sorry. Done.
| |
| 15 self.skipWaiting(); | |
|
nhiroki
2016/08/19 14:32:54
event.waitUntil(self.skipWaiting());
(I'm assumin
| |
| 16 }); | |
| 17 | |
| 18 addEventListener('activate', function(event) { | |
| 19 console.log('activated; claim will be called'); | |
|
nhiroki
2016/08/19 14:32:54
ditto.
shimazu
2016/08/22 02:38:10
Done.
| |
| 20 self.clients.claim(); | |
|
nhiroki
2016/08/19 14:32:54
event.waitUntil(self.clients.claim());
shimazu
2016/08/22 02:38:10
Done.
| |
| 21 }); | |
| OLD | NEW |