w3tc and cloudflare doubling up minified files on redirect
-
Hi
I have a query about something similar to what is reported in this topic
https://www.ads-software.com/support/topic/w3tc-non-existent-js-and-css-in-cache-minify-throw-errors/page/2/My site is cached on cloudflare.
When testing my site on gtmetrix (and only when using the chrome option) I get the “Serve resources from a consistent URL” flag and two copies of the minified js are found
https://rathfarnhamparish.ie/wp-content/cache/minify/d8750.default.include.248d2c.js
https://rathfarnhamparish.ie/wp-content/cache/minify/d8750.default.include.cb5f39.jsWhat is interesting is I know exactly how to reproduce this. It only happens on pages on my site where the url is redirected to another page.
https://rathfarnhamparish.ie/baptism/ is redirected to
https://rathfarnhamparish.ie/sacraments/baptism/
and I only get “Serve resources from a consistent URL” on the first not the second.The above phenomenon only happens on gmetrix using chrome. There is no doubling up when using Firefox.
It seems clear that the combination of w3tc and cloudflare is picking up a copy of the minified file from both the original url and the redirected page.I could avoid all of this by not using redirected pages but unfortunately there doesn’t seem to be a way to avoid (what amount to) redirects for a static front page in WordPress.
Any help appreciated. I hope the problem being identifiable and reproducible helps.
The page I need help with: [log in to see the link]
- The topic ‘w3tc and cloudflare doubling up minified files on redirect’ is closed to new replies.