Support » Plugin: Prevent Browser Caching » Versioning external loaded scripts

  • Resolved nissarak

    (@nissarak)


    Hello,

    I am using wonderpush.com and updated the notification prompt that is not being updated within my current browser but working fine for a first time visitor.

    I did cleared all caches of breeze, varnish, redis, cloudflare and also installed your plugin to versioning all css and js files (that is working well) but it seems due that external scripts had not been versioned the push prompt is still loading the old one?

    <noscript><style>.woocommerce-product-gallery{ opacity: 1 !important; }</style></noscript>
    <script src=”https://cdn.by.wonderpush.com/sdk/1.1/wonderpush-loader.min.js&#8221; async></script>
    <script>

    I am not sure how to test wether it is the reason else I would append a simple ?ver=12345. Or is there anything else that still gets cached but not versioned? Such as images?

    By the way, adding the “assets_version” directly within the plugin settings would be nice. Instead of manually into the functions.php

    Thank you in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kostyatereshchuk

    (@kostyatereshchuk)

    Hello,

    If you added this script without using wp_enqueue_script function you can add “ver” param manually, for example:

    <script src=”https://cdn.by.wonderpush.com/sdk/1.1/wonderpush-loader.min.js&ver=<?php echo time(); ?> async></script>

    Hope it will help.

    Best regards,
    Kostya

    Plugin Author kostyatereshchuk

    (@kostyatereshchuk)

    Marking as resolved for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Versioning external loaded scripts’ is closed to new replies.