Minify Adding HTTPS to URLs in CSS
-
I’m running the latest version of W3 Total Cache on my site at http://www.pr-tech.com.
It works great with MaxCDN and my other settings but I’ve noticed a VERY odd bug with the minify feature.
In my CSS file I have some urls specified for my background images like so…
background-image:url(images/background-sprite.jpg)
When I turn on minify EVERYTHING on my site works perfectly and it doesn’t cause anything to break, except when I check the minified CSS file I notice the code in my CSS has been changed to this…
background-image:url(https://cdn4.pr-tech.com/wp-content/themes/PR-Tech/images/background-sprite.jpg)
It’s putting an HTTPS (instead of HTTP) in front of the link which is causing the background images not to work. I can’t figure out for the life of me why it won’t work properly. If you try that link without the HTTPS it works just fine, but obviously with the HTTPS it doesn’t work.
Any ideas? Is this a bug or am I doing something wrong? When I turn off minify and empty the page cache everything is back to normal.
- The topic ‘Minify Adding HTTPS to URLs in CSS’ is closed to new replies.