Jump to content

Railgun from CloudFare

Recommended Posts

Cloudflare feedback:



Maksim G.Today at 14:30

Hi Igor,

Thank you for contacting Cloudflare Support. Insofar as I understand your questions:

I would like to use Bypass Cache on Cookie to serve guests a cached html page.

If you want to serve cached html pages to users, the Bypass Cache setting will not achieve this and in fact will have the opposite effect (ie. not caching pages). Instead you will want to follow the following guide on caching static html


Cloudflare does not cache html by default so a Page Rule is necessary to implement that behavior. Let me know if I have misunderstood what you are trying to do there.

But how to count visitors views on the page that is served by cloudflare datacenter? Is there a way to do that?

The only way to count the number of visits for cached pages using Cloudflare features would be using Enterprise Log Share


which is only available on the Enterprise plan but would allow you to capture logs from the edge. To achieve this on your plan you will likely need some in-house solution. I would note that all http responses proxied by Cloudflare are delivered with a CF-RAY header which contains a unique alpha-numeric string which you might be able to use to do this.

if you're caching entire page output for guests with this feature.. Doesn't that kill the topic view counters? If it's caching everything for guests... The page view never hits your server to increase the topic view counters.
Is that correct or am I missing something here?

Again, this feature will prevent pages from being cached when the request Cookie matches the rule. This means that Cloudflare will be pulling the page from the backend so that you will be able to count the request.

Let me know if I have misunderstood your questions in any way.



Link to comment
Share on other sites

So, if we want to serve cached pages by Cloudflare on a Business plan, the price to pay is to loose the view counter, unless thare is an iframe solution to trigger just the counter, with a specif rule to avoid caching.

Any idea? The truth is that cached pages are served almost instantly, it's amazingly fast.

Link to comment
Share on other sites

  • 2 years later...


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...