Minified and Combined CSS files don’t properly modify URL for SSL
-
In preparation for Chrome marking all sites not using HTTPS as insecure, I’m revisiting an issue I have using W3TC with minify and Cloudfront PULL CDN.
I’ve tried removing the files types from the “Theme file types to upload” (*.woff, *woff2, *tft, etc.), but it did not work. I’m wondering is it because I’m using Cloudfront Pull, so no files are actually ever uploaded by W3TC, so this never comes into play.
I tried using the Reject files options, but could not get that to work. My minified and combined css files, still have the CDN URL as https:// scheme. I would like it to not touch this URL, so that the scheme would be relative. Because the boostrap.min.css file is loaded from the CDN, then the fonts files would also be loaded from there as well.
Specificially this is happening in bootstrap.min.css which has
@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2')
, etc
gets replaced with
@font-face{font-family:'Glyphicons Halflings';src:url(https://cdn5XXXX/sgmwp/wp-content/themes/se-2016/js/bootstrap/fonts/glyphicons-halflings-regular.eot);src:url(https://cdn5XXXX/sgmwp/wp-content/themes/se-2016/js/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(https://cdn5XXXX/sgmwp/wp-content/themes/se-2016/js/bootstrap/fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(https://cdn5XXXX/sgmwp/wp-content/themes/se-2016/js/bootstrap/fonts/glyphicons-halflings-regular.woff) format('woff'),url(https://cdn5XXXX/sgmwp/wp-content/themes/se-2016/js/bootstrap/fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(https://cdn5XXXX/sgmwp/wp-content/themes/se-2016/js/bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';
This then forces a client which is loading my site with HTTPS, to try and load these resources with HTTP, which is not good and potentially can be blocked by the browser.
Thanks,
Rich
- The topic ‘Minified and Combined CSS files don’t properly modify URL for SSL’ is closed to new replies.