-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from pwnsoni/feature1
exchanged express-session with cookie-session
- Loading branch information
Showing
4 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
// THIS FILE SHOULD NOT BE VERSION CONTROLLED | ||
importScripts('https://cdn.jsdelivr.net/npm/[email protected]/workbox/workbox-sw.js') | ||
|
||
// -------------------------------------------------- | ||
// Configure | ||
// -------------------------------------------------- | ||
|
||
// Set workbox config | ||
workbox.setConfig({ | ||
"debug": false | ||
}) | ||
|
||
// Start controlling any existing clients as soon as it activates | ||
workbox.core.clientsClaim() | ||
|
||
// Skip over the SW waiting lifecycle stage | ||
workbox.core.skipWaiting() | ||
|
||
workbox.precaching.cleanupOutdatedCaches() | ||
|
||
// -------------------------------------------------- | ||
// Precaches | ||
// -------------------------------------------------- | ||
|
||
// Precache assets | ||
|
||
// -------------------------------------------------- | ||
// Runtime Caching | ||
// -------------------------------------------------- | ||
|
||
// Register route handlers for runtimeCaching | ||
workbox.routing.registerRoute(new RegExp('/_nuxt/(?!.*(__webpack_hmr|hot-update))'), new workbox.strategies.CacheFirst ({}), 'GET') | ||
workbox.routing.registerRoute(new RegExp('/(?!.*(__webpack_hmr|hot-update))'), new workbox.strategies.NetworkFirst ({}), 'GET') |