Please disregard.... I realized this can not be done because of cross 
domain...even with the origin attribute. 

On Saturday, April 9, 2016 at 12:22:31 PM UTC-5, Darin Hensley wrote:
>
> I have this custom element which fetches the facebook profile pic(very 
> small size) with url. I am using a service worker to intercept the call out 
> and cache it. However, it does not seem to effective. The call out goes out 
> over network with every page refresh. In addition, there is nothing in dev 
> tools under local storage. I also tried cacheOnly and it still called out 
> to the network for the url, so I know that the service worker 
> platinum-sw-fetch is not effective.
>
> Any suggestions on what I am doing wrong? If it did work, shouldn't I see 
> something in local storage for dev tools? I do see the service worker 
> itself in dev tools though.
>
> <platinum-sw-register auto-register
>                       clients-claim
>                       skip-waiting
>                       base-uri="../bower_components/platinum-sw/bootstrap"
> >
>   <platinum-sw-fetch
>     origin="https://z-1-scontent.xx.fbcdn.net";
>     path="/hprofile(.*)"
>     handler="cacheFirst">
>   </platinum-sw-fetch>
> </platinum-sw-register>
>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/94a7c121-6d52-409d-9af1-d62f6773ab0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to