DEV Community

Discussion on: CDN types and how to set one up (Vue, React)

Collapse
 
fahmiinabdullah profile image
Fahmiin Abdullah

Looks good and BunnyCDN definitely have a nice intuitive design that's easy to use compared to other CDN providers.

The only issue I have is in using service workers in my PWA Vue app as it seems that redirects to the CDN is disallowed.

Any thoughts on this? Thanks in advance!

Collapse
 
krusenas profile image
Karolis

Hi, I think PWA restriction is only the external domains. If you add your own CNAME that does something like cdn.yourdomain.com -> something.bunnycdn.com then it should be fine. For example:

host cdn.webhookrelay.com
cdn.webhookrelay.com is an alias for webhookrelay.b-cdn.net.
webhookrelay.b-cdn.net has address 81.19.214.21
webhookrelay.b-cdn.net has IPv6 address 2a01:4020:1::1307