Problem with PWA and google font cache
-
Hi guys,
I’ve been playing with the plugin and I’m loving it so far, but I got stuck at a problem.
When enabling “cache assets” on the PWA, I keep getting this error:Failed to load https://fonts.gstatic.com/s/librefranklin/v2/jizDREVItHgc8qDIbSTKq4XkRiUf2zc.woff2: Request header field x-pagespeed-sw is not allowed by Access-Control-Allow-Headers in preflight response.
I tried every trick in the book with NGINX to add the missing CORS header but no luck. I can’t get past this no matter what.
If I disable “cache assets”, it works.I can see the call
var e=new Request(a);e.headers.set("x-pagespeed-sw",1);
on abtf-pwa.js, but I had no luck working it out.Any hints?
Thanks and kudos on the amazing plugin.
- The topic ‘Problem with PWA and google font cache’ is closed to new replies.