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

  • Resolved nissarak



    I am using 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=”; async></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



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

    <script src=”<?php echo time(); ?> async></script>

    Hope it will help.

    Best regards,

    Plugin Author 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.