• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
  • VPS
    • VPS Hosting
    • Flex VPS
  • Reseller
  • Email
  • Gaming
  • Domains
  • Website Builder
  • Account
  • Blog Home
  • Categories
  • Authors

Cloudflare Railgun – Does It Work? Not Always

Bhagwad Park

Published on: March 20, 2019

Categories: Website Performance 4

Cloudflare can sometimes be one of those “hit and miss” applications. Their services are so comprehensive, that it’s very easy to overlook a configuration error. Each website needs to figure out what works and what doesn’t within its own unique environment. In this article, I’ll talk about Railgun. Ryan has already explained how to set up Railgun in a video. But does it really work? What are the caveats? Let’s find out.

Cloudflare DNS or Railgun – Don’t Enable Both

Cloudflare offers two ways to integrate with your website.

  1.  Via cPanel and keep your DNS servers intact
  2. Change your DNS nameservers to Cloudflare

Choosing the second option means Railgun is problematic. You should either use Cloudflare’s DNS servers or enable Railgun. But not both. I confirmed this in tests by myself and even created a forum post to clarify. The answer is simple – if you manually change your DNS servers to use Cloudflare instead of those provided by your web host, you either lose the ability to connect to Railgun, or the implementation becomes very rocky.

As proof, here’s what happened when I finally succeeded in enabling Railgun after using the Cloudflare DNS servers:

Enabling Railgun with Cloudflare DNS Servers

The above is the report from the Google search console. My page download times went from 200-300 ms to over 1000 ms! Plus I started getting a whole bunch of “527” errors related to Railgun. And when I disabled Railgun, the time went back down. I was as shocked as anyone to see this happen.

This sucks hard because I love Cloudflare’s DNS servers. They are super fast. Hardly surprising, given the breadth of their network. In the end, I chose to forego Railgun, and stick with Cloudflare’s DNS.

NameHero – Partial or Full Integration

While with other web hosts you need to manually update your DNS records to those of Cloudflare, NameHero allows you to do this automatically with one click. First locate the Cloudflare icon in your cPanel like this:

Cloudflare in cPanel

Then simply enable it at the backend. Now you have the choice for full or partial integration. The full integration means you won’t be able to use Railgun. But if you choose the partial integration, it’s available.

Enabling Railgun After Partial Integration

After you’ve enabled Railgun, you can enable Railgun from cPanel in the Cloudflare settings. Like this:

Enable Cloudflare Railgun from cPanel

Once this is done, log into your Cloudflare account, go to the “Speed” tab and scroll down. You should see something like this:

Speed tab in Cloudflare

If you’ve enabled Railgun properly on the NameHero backend via cPanel, it should already be enabled now for you to use. Click “Test”. If all goes well, you should receive a successful confirmation as shown here:

Cloudflare Railgun Enabled

How Do We Test if Railgun is Working?

There’s a quick way to test if Railgun is working or not. After you’ve enabled it, open a new window in your browser and activate the “Developer Tools” by pressing (Ctrl+Shift+C). This will open a panel. Click the “Network” tab in Chrome.

Now load the page you want to test. After it loads, click the very first URL in the “Name” column. These will bring up the response headers like this:

Response Headers in Chrome Developer Toosl cf-railgun

If Railgun is enabled, you should see the “cf-railgun” response header as shown above. Of particular interest is the second number which gives you the compressed size. In the screenshot above, you can see that Railgun has compressed the content by:

1 – 0.01 = 0.99

Or 99%! That’s a very impressive compression ratio. It’s made possible because Railgun only sends over the parts of the page that have actually changed. And when your site is mostly static, it can achieve crazy compression ratios.

Now if only it didn’t come with the terrible performance drawbacks if you choose to use Railgun with Cloudflare’s DNS servers!

Bhagwad Park Profile Picture
Bhagwad Park

I’m a NameHero team member, and an expert on WordPress and web hosting. I’ve been in this industry since 2008. I’ve also developed apps on Android and have written extensive tutorials on managing Linux servers. You can contact me on my website WP-Tweaks.com!

Related Posts

How To Fix Status Code 405 Error On Your WordPress Site

The Status Code 405 Error can be very annoying when trying to setup or work on your WordPress site. Here's our guide on how to fix it!

How To Fix The ‘Aw, Snap!’ Error (Eight Easy Ways)

Did you run into the Aw Snap! error in Google Chrome? Check out our guide on how to fix it quick with these 8 possible solutions.

How to Fix the 504 Upstream Request Timeout Error (5 Ways)

We'll take a closer look at the Upstream Request Timeout error. Then, we'll discuss some common causes and show you how to fix it.

4 Caching Strategies That Will Speed Up Your Website

Let's explain what caching is and why it’s beneficial. We’ll then explore some caching strategies to supercharge your website's speed.

Reader Interactions

Comments

  1. Heather Masters says

    December 4, 2020 at 9:33 pm

    Hi Bhagwad! I see your post is from 2019. Does Railgun still not work properly with Cloudflare’s DNS servers? I’m trying to decide which to use if I should only use one. Thanks!

    Reply
    • Bhagwad Park says

      December 7, 2020 at 11:51 am

      Hi Heather,

      Personally, I’d stay away from Railgun even today. Trust me, I’ve tried a lot to make it work as advertised, and I would really love for it to do what it says it can. But it just doesn’t 🙁

      Reply
  2. Ibrahim Ibrahim says

    July 22, 2022 at 4:04 am

    Hello Bhagwad!

    So this is 2022, any changes in the state of things with respect to Railgun?

    Just curious, since it’s been 2 more years since Heather’s question.

    Reply
    • Bhagwad Park says

      July 25, 2022 at 12:42 pm

      I haven’t tried it in 2022, but I’m pretty sure Cloudflare hasn’t made any major changes to Railgun, since I follow their development blogs and updates. If you’re feeling brave, feel free to test it out and let me know if it’s doing better!

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup (2024)

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • Email Hosting
  • Game Hosting
  • Domains
  • Website Builder
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2025 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA