Railgun is a WAN optimization technology that we offer our hosting customers in partnership with a company called CloudFlare.
CloudFlare's Railgun technology greatly speeds up the delivery of non-cached pages. While CloudFlare automatically caches 65% of the resources needed to make up a page, 35% can't be cached because the resources are dynamically generated or marked as 'do not cache'. That 35% is often the initial HTML of the page that must be downloaded first. CloudFlare Railgun speeds this remaining 35%.
What are the benefits of Railgun?
Websites running Railgun show a 143% improvement in HTML load times and a 90% decrease in Time To First Byte (TTFB) responses.
How does Railgun work?
Railgun opens a secure, tunneled connection between the CloudFlare network and your host's origin server where the connection only sends differences from the last request. This is similar to how video encoding works.
The markup of websites does not change that frequently from one request to the next. Instead of transferring the entire request between CloudFlare and the origin server, Railgun will transfer only the changes in markup from one request to the next. This cuts down on bandwidth, transfer time, and overall page load times. Railgun caches these differences in memory to make page processing as fast as possible.
What kind of sites can use Railgun?
Any website can benefit from the performance improvements Railgun offers, especially dynamic sites.
What much does Railgun cost?
We have partnered with CloudFlare to make Railgun both easy and affordable. If you purchase Railgun directly through CloudFlare, it costs $200/month. However, we have partnered with CloudFlare and are offering Railgun to our customers for a lower price.
How do I enable Railgun on my site?
Just send us email by the link in the console, and we will active it for you.
How to determine if Railgun is enabled? How to disable Railgun?
Go to Cloudflare's Speed menu and if you have Railgun activated, you can see TlOxygen under its submenus. You can also turn off Railgun on this page. Railgun will be automatically configured, you do not need to change any origin records nor code.
How to check the status of Railgun?
With Railgun enabled, you can see a Cf-Railgun field in the HTTP Header if the origin has enabled Cloudflare CDN. For an introduction to this field, see this article.
Is Railgun not working?
Railgun only works for dynamic content, you can try to open the Development Mode to test whether Railgun works without caching. In addition, Railgun will not work in Cache Everything mode nor Forwarding mode and you may need to turn off the related Page Rules.
In addition, the source IP will change after using Railgun. Please disable your firewall and allow any IP to access the HTTP(s) port.
Test result is Error?
Cloudflare's Test is valid for www domains only. You need to enable the Cloudflare CDN for the www domain before you can test it. If you are using Universal Setup, you also need to resolve the www domain name to Cloudflare. Even if the test does not pass, does not affect the use of subdomain name or root domain name.
What if I'm having issues enabling Railgun?
If you experience issues when enabling Railgun, please contact us.
I'm not a CloudFlare customer, can I still use Railgun?
No. You need to be a CloudFlare customer in order to use Railgun.
I'm seeing an error on my site and I think Railgun is causing it, what should I do?
If you are using Railgun via cPanel, you can turn it off directly from your control panel. Otherwise, log into your CloudFlare account, go to Performance Settings and turn Railgun off from there. Please file a bug report with a detailed description here.
Remind me, what is CloudFlare?
CloudFlare is a third party service that we offer to our hosting customers. CloudFlare provides performance, security and availability to web properties. CloudFlare runs a globally distributed network where they automatically cache static content, filter malicious traffic and help offload big spikes in traffic. On average, a site loads twice as fast, uses 65% fewer server resources and