W3 Total Cache Minify CDN gzip encoding errors
-
When WordPress Total Cache is configured to minify my
js
andcss
assets, gzip them, then serve those assets from a CDN, I can get it working when I set it up from scratch pretty easily. However, about a week goes by, and (I am assuming) W3TC updates my cached assets but makes them unserveable.In my console, I see
Invalid character '\u0031'
errors for a bunch of the cached assets, and I noticed that the assets aren’t being served with theContent-Encoding: gzip
header, which leads me to believe that W3TC either isn’t setting the header correctly or isn’t encoding the assets correctly. (The files being served are unreadable in the browser so I’m assuming it’s just the header that’s not being set correctly to tell the browser to about the caches).I end up having to disable the Minify cache, clear the Page and Minify caches, turn them back on, and wait for the caches to be redistributed to my CDN. Like I said, this happens about once a week without me making any changes to the
js
andcss
files being served.Please help me figure this out because it’s driving me nuts.
- The topic ‘W3 Total Cache Minify CDN gzip encoding errors’ is closed to new replies.