1. Home
  2. Docs
  3. CDN
  4. Setup
  5. Should I use Cloudflare with QUIC.cloud?

Should I use Cloudflare with QUIC.cloud?

To answer that question, let’s look at the route that a user request takes with QUIC.cloud alone, and then look at what happens when you add Cloudflare.

Without Cloudflare

Without Cloudflare, all requests look like this:

User request <----> QUIC.cloud <--if cache miss--> Origin server

The request goes to QUIC.cloud. If the content is cached (aka a "cache hit") the content is served. If the content is not present in the cache (aka a "cache miss") then the request goes to the origin to be served.

With Cloudflare’s Default Configuration

By default, Cloudflare does not cache dynamic content. (It is technically possible to cache dynamic content with Cloudflare, but in doing so, you interfere with smart-tag system and intelligent caching of QUIC.cloud / LiteSpeed Cache, so it is emphatically not recommended.)

Because Cloudflare is not caching dynamic content, but it is caching static content, the request is routed differently based on the type of content.

Dynamic request <----> Cloudflare <----> QUIC.cloud <--if cache miss--> Origin server

As you can see, dynamic requests are made more complicated with the addition of Cloudflare. Since the request must be routed to QUIC.cloud every time, Cloudflare simply increases latency and adds a delay to the request’s travel time.

Static request <----> Cloudflare <--if cache miss--> QUIC.cloud <--if cache miss--> Origin server

Static requests, on the other hand, may go no further than Cloudflare, if it’s a cache hit. As of this writing, Cloudflare has more nodes than QUIC.cloud, which may improve the delivery time to some locations, making it a potentially good choice for static content.

Another Option

You can configure Cloudflare to always handle static content while leaving the dynamic requests for QUIC.cloud, and your requests will look like this:

Dynamic request <----> QUIC.cloud <--if cache miss--> Origin server
Static request <----> Cloudflare <--if cache miss--> Origin server


For the shortest possible path (and therefore fastest response time), we suggest one of two possible configurations:

  1. Use QUIC.cloud without Cloudflare
  2. Use QUIC.cloud for dynamic content and Cloudflare for static content.

TIP: For most sites, except maybe those that are particularly media heavy, the loading time for dynamic content is a more important concern than the loading time for static resources. It’s not necessary to worry so much about static content, as there are plenty of tactics you can use to improve the impact, like lazy loading, deferred loading, and asynchronous loading.

Was this article helpful to you? Yes No 1

How can we help?