Title: Intermittent http/https issue
Last modified: March 23, 2018

---

# Intermittent http/https issue

 *  [mcleanap](https://wordpress.org/support/users/mcleanap/)
 * (@mcleanap)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/intermittent-http-https-issue/)
 * Hello,
 * This is happening on a number of websites using this plugin. On occasion, the
   stylesheets are not loading, and the issue is that the //www.websiteaddress.com/
   wp-content/cache/autoptimize/css/autoptimize_45ffdaa6cce331ca9effad18859e5765.
   css file is using http, while the website is using https. This causes a mixed
   content error, and the page is not rendered properly. If I clear the cache, it
   works again.
 * Any ideas?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/intermittent-http-https-issue/#post-10109115)
 * AO uses wordpress core’s [content_url()](https://codex.wordpress.org/Function_Reference/content_url)
   to decide what the base AO cache URL is. so what makes this weird is that it 
   is intermittend really, as one would expect it (content_url()) to be consistent.
   So absolutely no idea why it would happen on occasion really I’m afraid.
 * As a workaround you use one of AO’s filters (`autoptimize_html_after_minify` 
   is a possibility) to alter the URL’s from `http://` to `https://`? or playing
   around with the CDN URL might work as well.
 * frank

Viewing 1 replies (of 1 total)

The topic ‘Intermittent http/https issue’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/intermittent-http-https-issue/#post-10109115)
 * Status: not resolved