Drupal not loading theme CSS with HTTPS I have a theme and am loading CSS in the traditional way, through the theme.info file, as follows:

stylesheets[all][] = css/style.min.css


However, my clients site uses HTTPS. And every 3rd or 4th load for some reason Drupal tries to load all my files via HTTP rather than HTTPS, causing all the stylesheets/js/images not to load.

Is there any way to force Drupal to use HTTPS on assets while maintaining using the theme.info file to load them?
For a Drupal 7 site using Cloudflare CDN and a Bootstrap theme, this worked for me: Set the base URL in your settings.php file, without including http:// or https://.

$base_url = '//my.domain.name';


For another Drupal 7 site with a different theme, just removing $base_url worked.
In both cases, I needed the site to work with secure URLs and without.