Minified assets randomly load via HTTPS
-
Hi,
Thanks for making this plugin available. Just some feedback:
I’m minifying and merging CSS and JS. When page caching is enabled, I’m seeing the same problem mentioned here: on apparently random pages (different for each client), HTTPS is mistakenly used to load some of the minified CSS and JS files. HTTPS is not enabled on my site, so the asset loading fails. On other pages, the same files are correctly loaded via HTTP links instead. This appears not to happen for logged-in admin users, so I test in incognito tabs. The problem persists even after a forced page reload for those clients. Clearing the cache and purging minified files helps, until the problem is seen again. (It might be related to Preloading, as if I turn this feature off then purge the minified files and page cache, it seems not to happen anymore; therefore I’m not using Preloading now.)
In a separate point, btw, I ran into another issue whereby if I chose to minify files and inline files if small enough, WPO would inline the child theme CSS (along with some other CSS files, fonts etc.) but then it would afterwards link to a minified parent theme CSS file (presumably deemd too large to inline). The problem here is the parent theme would then overrule the child theme CSS instead of the other way around. There appeared to be no way of reversing this order inthe markup, so I’ve got around it by just turning inlining off.
- You must be logged in to reply to this topic.