My Questions About Wordpress and Cloudflare

wordpress

#1

Hi friends,

Hope you’re fine! :slight_smile:

  • Which one is better for page speed? minifying css and js files by using cache plugin or minifying these files via CF feature? Minifying CSS-JS files via CF does reduce TTFB?

  • If I activate Automatic HTTPS Rewrites feature, it reduces TTFB?

  • Is there any way to host locally js file of the Rocket Loader in order to reduce DNS lookup ?

  • The Rocket Loader and HTML minification via CF has negative effect on Adsense or Google Analytics?

  • I want to use CACHE EVERYTHING function. So below settings will be good for a Wordpress site? (NOTE: It is a multilingual site. So I added two ‘’ * ‘’ before and after the wp-admin url.)

For instance:
/wp-admin
/en/wp-admin

I’m not a pro user. So could you please simple clarify these questions?

Best regards!


#2

I have CF do all my minification for me. Because CSS and JS are cached at Cloudflare, that’s not going to change your TTFB on those files.

Auto HTTPS rewrites really shouldn’t come into play. It’s there to fix your mistakes if you don’t have all your schemes set to HTTPS. If anything, it’ll speed things up because it saves your visitors a redirect to an HTTPS resource.

I believe that Rocket Loader is created on the fly by Cloudflare. I don’t use it. Feel free to A/B test it to see if it improves your load time.

I don’t use Google, so I don’t know its effect on Adsense or Analytics, but I don’t expect anything do you here will harm your standing.

My Cache Everything usually goes like this:
example.com/wp-admin* (Bypass)
example.com/wp-login.php (Bypass, and Security set to I’m Under Attack)
example.com/* (Cache everything, plus browser and edge cache settings)


#3

Thank you for your response :slight_smile:

Rocket Loader has positive affects on my blog but it adds a external js file on the header.

Additionally you can use example.com/* wp-admin * rule only. So you can remove wp-login rule. Because when you enter example.com/wp-admin it redirects you to the page that includes wp-admin in the url.

Like that: example.com/wp-login.php?dkkektf-wp-admin42sk


#4

I believe I ran into trouble a while back with caching wp-login due to a login plugin I no longer use.

I’ll drop that rule now that I’m not using that plugin and see how it goes. Thanks!


#5

might need to test for specific situations as @jules tested origin end minification being faster for his specific usage Minify using Cloudflare vs plugin


#6

I don’t think it’ll affect TTFB (if CF Cached), but it can affect load time.


#7

No luck. With everything (except wp-admin) cached, it’s giving me a cookie error when trying to log in.


#8

It should work. Login with wp-admin link. Do not use example.com/wp-login.php
Because when you enter /wp-admin url, it will redirect you automatically to the:

https://example.com/wp-login.php?redirect_to=https%3A%2F%2Fexample.com%2Fwp-admin%2F&reauth=1

I will try it again.


#9

This topic was automatically closed after 14 days. New replies are no longer allowed.