• Resolved helle.rob

    (@hellerobgmailcom)


    Hi.

    I am setting up W3TC on my woocommerce shop that uses Klarna checkout plugin. I found these instructions but I am not sure how I can set up these exceptions. I have limited knowledge about the technical details how this works. Appreciate any help on this though:

    “If you are using some kind of optimization feature there are files that needs to be excluded from any caching or concatenating. Which files depends on the plugin, but for Klarna Checkout for WooCommerce it’s the following files: wp-content/plugins/klarna-checkout-for-woocommerce/assets/js/klarna-checkout-for-woocommerce.min.js wp-content/plugins/klarna-checkout-for-woocommerce/assets/js/klarna-checkout-for-woocommerce..js Files from https://js.playground.klarna.com Files from https://js.klarna.com Files from cdn.klarna.com”

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @hellerobgmailcom

    Thank you for reaching out and I am happy to assist you with this.
    This means that the following files need to be excluded from Minify. If Minify is enabled (and I am not seeing that you are minifying assets) in the W3 Total Cache General settings, those files need to be added to the Performance>Minify>Advanced>Never minify the following JS files: field:

    /wp-content/plugins/klarna-checkout-for-woocommerce/assets/js/klarna-checkout-for-woocommerce.min.js
    /wp-content/plugins/klarna-checkout-for-woocommerce/assets/js/klarna-checkout-for-woocommerce..js

    The other mentioned URLs are external, and W3 Total Cache does not optimize 3rd party files.
    If minify is not enabled there is no need to do this.
    You should however exclude the cart and checkout pages from being cached in Performance>Page Cache>Advanced/Never Cache following pages: field
    In your case, those should be /handlekurv/ and /kassen/

    I hope this helps!

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Set up w3tc with woo and Klarna checkout’ is closed to new replies.