
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.
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!
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-advertisement | 1 year | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement". |
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
| Cookie | Duration | Description |
|---|---|---|
| _ga | 2 years | This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors. |
| _gat_gtag_UA_43963494_1 | 1 minute | This cookie is set by Google and is used to distinguish users. |
| _gid | 1 day | This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form. |
| Cookie | Duration | Description |
|---|---|---|
| IDE | 1 year 24 days | Used by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile. |
| test_cookie | 15 minutes | This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies. |
| VISITOR_INFO1_LIVE | 5 months 27 days | This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website. |
| YSC | session | This cookies is set by Youtube and is used to track the views of embedded videos. |
| Cookie | Duration | Description |
|---|---|---|
| CONSENT | 16 years 5 months 26 days 13 hours 25 minutes | No description |
| yt-remote-connected-devices | never | This cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video. |
| yt-remote-device-id | never | This cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video. |