| 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 // This no-op fetch handler is necessary to bypass explicitly the no fetch |
| 10 // handler optimization by which this service worker script can be skipped. |
| 11 addEventListener('fetch', event => { |
| 12 return; |
| 13 }); |
| 14 |
| 15 addEventListener('install', event => { |
| 16 event.waitUntil(self.skipWaiting()); |
| 17 }); |
| 18 |
| 19 addEventListener('activate', event => { |
| 20 event.waitUntil(self.clients.claim()); |
| 21 }); |
| OLD | NEW |