1

Cloudflare DNS CNAME

We're using google's pagespeed service. From what I can gather it just draws the page from our webserver and runs it through the mod_pagespeed optimisation module. I'm wondering does it do any proxy/caching as well, or is it strictly one request in/one request out?

Now we're also using google's cloudflare CDN/proxying service (elsewhere). From what I can gather cloudflare is a big proxy/caching network/service. Does it do any page optimisation as well, or does it strictly store and forward exactly what it received from our webserver?

I'm working with a business critical website and have been instructed not to try anything 'just to see what happens' so I'm forced to ask "what happens if you use both pagespeed and cloudflare together"?

I'm expecting nothing bad. I expect the cloudflare cache would draw our pages from pagespeed which in turn is drawing from our webserver. The end result being optimized pages in the cloudflare cache.

Is my understanding correct?

  • Try it with a non-critical web site, or a personal web page, or something like that. – Michael Hampton Jun 4 '14 at 11:27
2

You can add the PageSpeed record in your DNS settings. We can't, however, proxy that record & you would want to make sure that the record is direct (grey cloud) in your DNS settings. You don't want to stack a proxy on top of another proxy. Generally speaking, this is what I see customers do with PageSpeed in their DNS settings:

CNAME www is an alias of (google's pagespeed dns value).

1

CloudFlare has its own web content optimiser (details are at https://www.cloudflare.com/features-optimizer). Generally, this works pretty well - however, we've seen quite a few issues with cloudflare going down frequently in various network pop's (either due to congestion / upstream issues / network problems). Mind you it is a great product with quite a few security features also available (like web application firewall, DDoS protection to certain extent, etc) but they'll possibly need to work a bit more on stabilizing their infrastructure so as to reduce website downtime.

  • Yeah, I saw that in the cloudflare docs after I asked - there's a "minification" option that will munge various bits which does sound like an overlap with PS. But whether this is a substitute, or conflicts, with Pagespeed is the answer I'm chasing. – John Mee Jun 4 '14 at 7:43
0

I'm currently in the same position (using both cloudflare and pagespeed) A lot of the cloudflare optimisations are stuff that pagespeed does, so it's either a waste or unnecessary (for example we use pagespeed to turn our jpegs into webp files from chrome) which means that cloudflare will have end up with multiple copies of the same file depending how our server optimised it (net result is that cache will take longer to warm up)

But as another user mentioned cloudflare sometimes has some issues and we've had to turn it off before which means we still have our pagespeed optimisations in place by simply switching it off. Rather than having to turn back on pagespeed (means it can be done by someone less technical).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.