Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

how can I precache some url with cookie ? #280

Open
p2227 opened this issue Jan 12, 2018 · 0 comments
Open

how can I precache some url with cookie ? #280

p2227 opened this issue Jan 12, 2018 · 0 comments

Comments

@p2227
Copy link

p2227 commented Jan 12, 2018

var toolbox = require('sw-toolbox');
var pagePaths = ['/','/xxx','/about','/help']
pagePaths.forEach(page=>toolbox.router.get(page,toolbox.networkFirst));
toolbox.precache(pagePaths);

I want this paths precached with cookie ,I had read the docs and counld not find some options like

toolbox.precache(pagePaths, { credentials:'same-origin' });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant