Title: Autoptimize in HTTPS is breaking the pages.
Last modified: April 11, 2019

---

# Autoptimize in HTTPS is breaking the pages.

 *  Resolved [morg2k2](https://wordpress.org/support/users/morg2k2/)
 * (@morg2k2)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-in-https-is-breaking-the-pages/)
 * The plugin works well either in http and https, but after starting to cache with
   the 3 options enabled (Optimize html code, optimize javascript code, optimize
   css code).
 * But after awhile when loading the site using https the site start be completely
   without layouts, like blank page with text, links… all the formatting is lost.
 * If i am loading the file by http i dont have any issue.
 * I am using:
 * Theme: Astra theme + Asta pro plugin
    Plugin: autoptimizer + cache enabler (cache
   disabled).
 * Do you know how to fix this issue?
 * thanks in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautoptimize-in-https-is-breaking-the-pages%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-in-https-is-breaking-the-pages/#post-11417220)
 * The fact that your images also load from `http://` iso `https://` indicates the
   problem is likely not just due to Autoptimize.
 * My advice:
    * make sure that the URL has https:// in settings -> general for 
   both WordPress Address (URL) and Site Address (URL) * optionally add a https://
   url in Autoptimize’s CDN settings * if problems persist install e.g. [the really simple ssl plugin](https://wordpress.org/plugins/really-simple-ssl/)
 * hope this helps,
    frank
 *  Thread Starter [morg2k2](https://wordpress.org/support/users/morg2k2/)
 * (@morg2k2)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-in-https-is-breaking-the-pages/#post-11417512)
 * Hi Frank,
 * thanks for the fast reply.
 * I will follow your solution and then let you know.
 * thanks,

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Autoptimize in HTTPS is breaking the pages.’ 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/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)

 * 2 replies
 * 2 participants
 * Last reply from: [morg2k2](https://wordpress.org/support/users/morg2k2/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/autoptimize-in-https-is-breaking-the-pages/#post-11417512)
 * Status: resolved