Two separate platinum-sw elements with different strategies in the same web app?

10 views
Skip to first unread message

Darin Hensley

unread,
Apr 6, 2016, 11:06:43 PM4/6/16
to Polymer
I am building a 'progressive' web app that will be available offline. I'm totally new to 'progressive apps' I have what may be a really newbie question, but I'm trying to plan ahead.  

I am still in the early stages right now. If the user uses facebook for authentication, I would like to use their profile pic in the app header toolbar. 

The url for such a profile pic is, for example,  https://scontent.xx.fbcdn.net/hprofile-xpa1/v/t1.0-1/c0.7.50.50/p50x50/2987. I don't want the url to be called everytime the page refreshes. So, I thought about using platinum-sw to save the pic with strategy `toolbox.cacheFirst`.

Since later on I will be implementing off line capabilities with platinum-sw  with the default strategy, I am not sure if this will be a issue. 

Can I have two separate platinum-sw elements with different strategies in the same web app? Or would there be side effects and issues?


Reply all
Reply to author
Forward
0 new messages