{"id":5230566,"date":"2014-08-27T14:24:46","date_gmt":"2014-08-27T14:24:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/generic-mirror-giving-400-errors\/"},"modified":"2016-08-22T00:53:41","modified_gmt":"2016-08-22T00:53:41","slug":"generic-mirror-giving-400-errors","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/generic-mirror-giving-400-errors\/","title":{"rendered":"generic mirror giving 400 errors"},"content":{"rendered":"<p>I have setup a CNAME to my website and symlinked the wp-content directory under the subdomain folder created by Bluehost. This my poor man&#8217;s way to setup a self-hosted cdn without having to duplicate the content.<\/p>\n<p>If I enable the option &#8220;Host minified CSS and JS files&#8221; when doing a generic mirror under the CDN optoins I get 400 errors for the minified files. No other files are having issues, just the minified files.<\/p>\n<p>I have determined that only 2 of the files are created under \/wp-content\/cache\/minify\/000000\/ when accessing the file from the CDN. The two files are *.css.old and *.css.gzip.old. The *.css and *.css.gzip files do not get created (or replace css with js.) If I then access the resource from the primary domain these files get created and I can then access them on the CDN. What have I done wrong so that these minified files get created properly?<\/p>\n<p>I would have expected the primary site to create the file, mirror them through the symlink and they are then available through the cdn.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/w3-total-cache\/<\/p>\n","protected":false},"template":"","class_list":["post-5230566","topic","type-topic","status-closed","hentry","topic-tag-400-error","topic-tag-cdn","topic-tag-w3tc"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5230566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5230566\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5230566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}