Can use Cloudflare like JSDeliver?
for my Webprojects i use jsdesliver at the moment is it possible to use a cloudflare service to have the same solution? Becuase i have all my domains in Cloudflare.
9 Replies
is this from Cloudflare? Because at the moment i have all my code visible on Github, but when i will have projects in the future with APIs and want to have it private and i hope Cloudflare is having a service
Can i create a subdomain with Cloudflare and host the code there?
The optimal thing is to not use an "external" CDN at all, and just bundle fonts/packages into your code, if possible
But when it is a subdomain is it "external"?
yes, because it has to be imported through another GET request
if you had to use a CDN, just put it in an R2 bucket and assign it a subdomain, CDN problem sorted, someone else may have a better solution though
Never heard of R2 Bucket
Public buckets · Cloudflare R2 docs
Public Bucket is a feature that allows users to expose the contents of their R2 buckets directly to the Internet. By default, buckets are never …
yep
interesting what are you using to host JS code that you use on your site? i am working with Webflow and custom code options are very limited there.
mine is all bundled up and hosted on pages
only external data I need is media, everything else is bundled