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 echo <<<EOF | |
|
nhiroki
2016/08/19 05:26:52
Here-document may not be necessary if you put "?>"
shimazu
2016/08/19 09:43:16
Done.
| |
| 8 | |
| 9 addEventListener('fetch', function(event) { | |
| 10 return; | |
| 11 }); | |
| 12 | |
| 13 addEventListener('install', function(event) { | |
| 14 console.log('install; skipwaiting'); | |
| 15 self.skipWaiting(); | |
| 16 }); | |
| 17 addEventListener('activate', function(event) { | |
| 18 console.log('activated; claim will be called'); | |
| 19 self.clients.claim(); | |
| 20 }) | |
| 21 EOF; | |
| 22 ?> | |
| OLD | NEW |