This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tryCache(event) { | |
console.log('Got request: ', event.request); | |
return caches.match(event.request) | |
.then((response) => { | |
if (response) { | |
console.log("Cache hit ", response); | |
return response; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (process.env.NODE_ENV !== 'production') | |
if (this.checkEntryRevisioning === true) { | |
showWarningsIfNeeded(userEntries); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (process.env.NODE_ENV !== 'production' && this.checkEntryRevisioning === true) { | |
showWarningsIfNeeded(userEntries); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Misc Addons/Configs | |
dist: trusty | |
sudo: required | |
addons: | |
apt: | |
sources: | |
- google-chrome | |
- ubuntu-toolchain-r-test | |
packages: | |
- google-chrome-stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Route from 'workbox-routing/Route'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Route} from 'workbox-routing'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Router from './lib/Router'; | |
import Route from './lib/Route'; | |
import ExpressRoute from './lib/ExpressRoute'; | |
export { | |
Router, | |
Route, | |
ExpressRoute | |
} | |
export default new Router(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Router from './lib/Router'; | |
export default new Router(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const router = new google.workbox.routing.Router(); | |
const route = new google.workbox.routing.Route(); | |
const expressRoute = new google.workbox.routing.ExpressRoute(); | |
google.workbox.routing.default // This is the default export "routing" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Router from './lib/Router'; | |
import Route from './lib/Route'; | |
import ExpressRoute from './lib/ExpressRoute'; | |
import routing from './module.js'; | |
export { | |
Router, | |
Route, | |
ExpressRoute | |
} |
NewerOlder