Newspaper CloudFlare and query strings

Posted in: Newspaper
Post count: 31

Has anyone investigated how query strings in Newspaper and Cloudflare caching interact?

I currently have Newspaper and CloudFlare “Caching Level” set to “Standard” which means it does its best. My understanding is developers version files like this for cache busting purposes so when the theme is updated, browsers will see the new version in the query parameter and download the latest version. I’d much rather see the version number in the URL path, so each version is a different path, but presumably WordPress doesn’t support that.

GTMetrix and Pingdom both call out all these query strings might slow down proxy caches by keeping them from caching these files. Long story short, I’m wondering if that’s the case with CloudFlare and if anyone here has done anything to see if there’s a need to investigate further.

FWIW, I do not use Tagdiv’s speed booster plugin since it’s incompatible with several key core plugins.

Post count: 1291

Hi,

Cloudflare cache should work as long as you don’t change the query on each request. You could use the browser Network tool(on Chrome) to check if a file is cached – http://screencast.com/t/pOS62ffqR0L
The version query is present on all wordpress themes, it’s not a specific Newspaper behavior.
If your query string is changed on each request check the plugins, you may have one which does that.

Some proxies may be set not to cache links which come with query strings, but if you use cloudflare you shouldn’t worry about this.

Speed booster is not related to proxy or caching, it just moves the css and js at the page bottom. To avoid any possible conflict we added a check which enables it only for the plugins with which it was tested. You could try to enable it for all plugins, for this just delete or comment the following code – http://screencast.com/t/RZLIOPUNdqh

Thank you!

  • This reply was modified 10 years by Emil G.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.