Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
sobrenome Posted April 10, 2017 Author Posted April 10, 2017 Cloudflare feedback: Quote 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 https://support.cloudflare.com/hc/en-us/articles/200172256-How-do-I-cache-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 https://support.cloudflare.com/hc/en-us/articles/216672448-Enterprise-Log-Share-REST-API 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. Best, Maksim
sobrenome Posted April 10, 2017 Author Posted April 10, 2017 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.
sobrenome Posted December 27, 2019 Author Posted December 27, 2019 Anyone else using Railgun or bypass cache on cookie with cloudflare?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.