CloudFlare things and query strings
Posted: 08 Oct 2019, 18:33
Hello,
I am having an issue with Cloudflare. However I do not have the Cloudflare option enabled in CSF. I don't want to send blocked IPs to Cloudflare since it's just a free account anyway and I don't like all the other restrictions I saw in the readme file. I just wanted to use Cloudflare for caching. Herein lays the issue.
There is only one website on this server and it's a WordPress site. Certain files such as CSS or JS have version strings attached to them like /wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=4.2.6-78496d1
When Cloudflare is paused or in development mode loading this particular file works perfectly fine. However when running normally it does not load, it gives a 522 error indicating it cannot get a response from the server. It does get a response when I disable CSF and the file loads fine. It also loads fine if I remove the query string like so: /wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css
This may happen on other files as well but this was the one I was testing with.
I have added the Cloudflare IPs to the csf.ignore and csf.allow and restarted CSF but the issue persists.
I've tried disabling SPI and it didn't seem to have any affect. I also tried adjusting various other options in CSF as well as Cloudflare to no avail.
The server does not have mod_cloudflare and CF_ENABLE is 0 and does not have the Cloudflare WP plugin installed. Would this affect this at all? I suspect not because it seemed to me like those things were specific to sending the IPs to Cloudflare's firewall to block them there as well which I don't want to do.
I found a few posts from people having very similar issues on the Cloudflare forums but nobody had any solution posted. I suspect they were probably using CSF as well.
I've also tried various browsers and tried from another system as well using curl but always get the same 522 error from Cloudflare when their caching is enabled.
I tried changing their Caching Level setting to all the different options but that didn't work.
I don't see anything in the logs anywhere on the server when this happens either which is odd.
Any ideas on where to go from here?
Thank you!
I am having an issue with Cloudflare. However I do not have the Cloudflare option enabled in CSF. I don't want to send blocked IPs to Cloudflare since it's just a free account anyway and I don't like all the other restrictions I saw in the readme file. I just wanted to use Cloudflare for caching. Herein lays the issue.
There is only one website on this server and it's a WordPress site. Certain files such as CSS or JS have version strings attached to them like /wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css?ver=4.2.6-78496d1
When Cloudflare is paused or in development mode loading this particular file works perfectly fine. However when running normally it does not load, it gives a 522 error indicating it cannot get a response from the server. It does get a response when I disable CSF and the file loads fine. It also loads fine if I remove the query string like so: /wp-includes/js/mediaelement/mediaelementplayer-legacy.min.css
This may happen on other files as well but this was the one I was testing with.
I have added the Cloudflare IPs to the csf.ignore and csf.allow and restarted CSF but the issue persists.
I've tried disabling SPI and it didn't seem to have any affect. I also tried adjusting various other options in CSF as well as Cloudflare to no avail.
The server does not have mod_cloudflare and CF_ENABLE is 0 and does not have the Cloudflare WP plugin installed. Would this affect this at all? I suspect not because it seemed to me like those things were specific to sending the IPs to Cloudflare's firewall to block them there as well which I don't want to do.
I found a few posts from people having very similar issues on the Cloudflare forums but nobody had any solution posted. I suspect they were probably using CSF as well.
I've also tried various browsers and tried from another system as well using curl but always get the same 522 error from Cloudflare when their caching is enabled.
I tried changing their Caching Level setting to all the different options but that didn't work.
I don't see anything in the logs anywhere on the server when this happens either which is odd.
Any ideas on where to go from here?
Thank you!