Unified · Split
| @@ -50,7 +50,6 @@ self.addEventListener('fetch', event => { · 49 unmodified lines | ||
| 50 | 50 | <%# The index page will make sure the correct documentation or a proper offline page is shown %> |
| 51 | 51 | const pathname = url.pathname; |
| 52 | 52 | const filename = pathname.substr(1 + pathname.lastIndexOf('/')).split(/\#|\?/g)[0]; |
| 53 | − | |
| 54 | 53 | if (url.origin === location.origin && !filename.includes('.')) { |
| 55 | 54 | const cachedIndex = await caches.match('/'); |
| 56 | 55 | if (cachedIndex) return cachedIndex; |