• Resolved Draba82

    (@draba82)


    I constantly have this problem after caching is cleared or pages are changed.
    Somehow the asset clean up css refers a https url to (for example images or fonts) to http.

    Once that has happend my page is missing images because they are insecure (like icons). Then I check my database and I find all http references. Once I change those in the DB to https it’s all working fine but after 1 day it goes back to http reference.

    I have mailed the plugin owner about it on the website but no response 🙁

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @draba82 thanks for reporting this! I know it’s been fixed a long time ago, are you using the latest version of Asset CleanUp? For now, can you just use the unload CSS/JS and leave the minify/combine until I’ll investigate this? Anyone else having this problem?

    I don’t think I received an email from you, when did you send it? I’ll check the SPAM folder. Can you send me a new one with the “System Info” (from “Tools”) attached?

    Thread Starter Draba82

    (@draba82)

    Hi Gabe!

    Yes I am using the latest version. Also just started using your amazing plugin 😉
    I used the contactform on your website But I will send a direct email with my system info.

    Plugin Author Gabe Livan

    (@gabelivan)

    @draba82 I’ve run a test on your website and it looks like you’re using Humminbird that is minifying the files. Asset CleanUp is combining those files. Now, if you load your website with /?wpacu_no_load appended to the URL (which technically loads your website without Asset CleanUp), you will notice in the browser’s console (Right Click -> Inspect -> Console) that you have the same problem:

    Mixed Content: The page at [your-website]/?wpacu_no_load’ was loaded over HTTPS, but requested an insecure font ‘[your-website]/wp-content/plugins/revslider/public/assets/fonts/revicons/revicons.woff?5510888’. This request has been blocked; the content must be served over HTTPS.

    So, consider disabling Humminbird minification and just use Asset CleanUp’s one. Or try to disable Humminbird and just use Asset CleanUp concatenation (no minification). Either Humminbird hardcoded “http://” OR the plugin/theme is doing that. Hope it helps!

    • This reply was modified 4 years, 10 months ago by Gabe Livan.
    Thread Starter Draba82

    (@draba82)

    Hi Gabe!

    Awesome response and you were right.. I disabled hummingbird caching and only use them for pagecaching (and that was my initial thought).
    Then I hit some lower response and really high loading time (7s) on the wp-json/v1 file (any idea why?)

    Now a couple day’s later it is fast and much smaller and wp-json/v1 is not slow anymore. But somehow Rev Slider keeps stucked at loading/spinner on the homepage.

    Any idea why? And is this a known issue with revslider?

    Plugin Author Gabe Livan

    (@gabelivan)

    @draba82 Whenever a REST request is made, Asset CleanUp’s code is not triggered because it’s not relevant for that request. When a request is made (and there is no type of caching when performing that request), the whole WP environment is loaded and if at that time, there were slow queries or something related to the hosting, then it would take a while for the request to complete and print its results.

    There’s no issue with Revolution Slider. In fact, the problem you’re having is related to an undefined variable (check the browser’s console: right-click, “Inspect” and click “Console”).

    If you access [your-website]/?wpacu_no_js_combine you will see that the slider and other elements from the bottom load perfectly fine. This is a query used for debugging that will load the JS files as they are (minified at this time) without triggering the combination.

    There are two possible causes for this from my research:

    1) Hummingbird is interfering with the files (you removed the query strings from the files that are not minified). This is not a good practice because the solution it uses is simplified. Check this article: https://docs.wp-rocket.me/article/56-remove-query-string-from-static-resources (scroll to “Don’t use simplified solutions!”). Moreover, since Minify CSS/JS is enabled in Asset CleanUp, the query string is already removed and hardcoded in the file name, so stripping it via Hummingbird (in Advanced Tools -> General) or through other ways is not recommended as you’re using extra resources for no reason and your visitors could load older versions of the files because there is no hardcoded version of the file (see the article I just mentioned).

    2) There’s an incompatibility between your theme/plugins and Asset CleanUp when a combination of the JS files is performed. This can be solved via trial and error and make sure the file having that variable (from the console) has priority, applying “Defer parsing JavaScript” for the final combined file or, the easy way, just disable the combine JS files feature. If your website is using HTTP/2 protocol, then it won’t make any difference for your visitors’ experience when the page is loading.

    Asset CleanUp’s main purpose is to prevent useless CSS/JS from loading, thus reducing the bloat. Combine JS is just an extra feature to further reduce HTTP requests and, in some instances, it can cause issues and it doesn’t have to be enabled as your website will load perfectly fine without it.

    • This reply was modified 4 years, 10 months ago by Gabe Livan.
    • This reply was modified 4 years, 10 months ago by Gabe Livan.
    • This reply was modified 4 years, 10 months ago by Gabe Livan.
    Thread Starter Draba82

    (@draba82)

    I believe your support and comments are awesome.
    Apparently I enabled “Remove URL Query Strings” and by disabling it I had no issues with Revolution slider anymore.

    Thank you again!

    PS; I am learning more and more what to do with your plugin. Now unloading lots off css files that are not necessary on other pages then Homepage.

    • This reply was modified 4 years, 10 months ago by Draba82.
    Plugin Author Gabe Livan

    (@gabelivan)

    @draba82 That’s great that your getting used with the plugin! As you probably noticed already, it’s being updated regularly and more features will come up. How do you find the UI?

    PS: If you’re happy with it, it would be great if you can leave a review here at your earliest convenience:
    https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/#new-post

    Hello,
    I’m having a problem with your caching plugin not clearing the cache of css. Our images have recently switched over to https from http. One of the images is being called in the cached css as http:// . We have update the image to https:// in the theme’s editors css. Tried clearing the cache of Asset Clean Up, yet the image still remains as http:// as if the cache never updates! Using Asset CleanUp Pro 1.1.5.0 .
    Is there anything that can be done? Thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘HTTP to HTTPS links’ is closed to new replies.