Why cloudflare not cache font-awesome & google api js?

Hi

My website hosted outside china, and has below js calls, and they are all blocked in china causing users in China opening my website super slow (more than 30 seconds to open, or can not open at all)

  1. I enabled CF cache for the site, and found that no cf header and cache for them. I wonder how to cache these js so that users in China can access these js via CF cache? any solution for these?

https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css
https://apis.google.com/js/platform.js
https://connect.facebook.net/en_US/sdk.js

Could you please check your DNS record if you turn on proxy mode? If Cloudflare doesn’t cache the font, you will see cf-cache-status is Dynamic. If you don’t see cf-cache header, likely your website is not proxied. You can read more at Proxy status · Cloudflare DNS docs

To know more about how Cloudflare cache works and how Cloudflare cache js files, you can take a look at Default Cache Behavior · Cloudflare Cache (CDN).

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.