• Resolved atesz03

    (@atesz03)


    Hi,

    On the main page there is a leaflet map with placholder on it with the following text on scroll: “use ctrl + scroll to zoom the map”. This should be translated to german, but the german js doesn’t load if powered cache is enabled.

    If you have a look in the devtools / network / js, there is a CORS error for the following file: https://cdn.exploring-the-nature.com/wp-content/plugins/powered-cache/includes/file-optimizer.php??/wp-content/plugins/ootb-openstreetmap/assets/vendor/leaflet-gesture-handling/./locales/de.js

    I added the following file path to the excluded files of minified JS and also to the rejected files of the CDN and purged the cache: /wp-content/plugins/ootb-openstreetmap/assets/vendor/leaflet-gesture-handling/locales/de.js

    But unfortunately it still tries to load the minified version from the CDN and the js breaks.

    Please use F12 for dev tools because right click is disabled. Thank you for the support in advance!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mustafa Uysal

    (@m_uysl)

    Hi @atesz03,

    It looks you missed ./ Could you try this:

    /wp-content/plugins/ootb-openstreetmap/assets/vendor/leaflet-gesture-handling/./locales/de.js

    Thread Starter atesz03

    (@atesz03)

    Hi @m_uysl

    Thank you for the quick response. Actually the ./ directory doesn’t exist and the correct path to the file is without it. It seems that the plugin adds it to the path for some reason I don’t understand.

    But I tried it anyway now with this path, too. I added it to both CDN an JS minify exclusions and purged the cache. But unfortunately no success.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    @atesz03 can you try /ootb-openstreetmap/assets/(.*) instead full path?


    Thread Starter atesz03

    (@atesz03)

    Thank you @m_uysl ! This solved the problem immediately.

    Plugin Author Mustafa Uysal

    (@m_uysl)

    @atesz03 Glad to hear that it did the trick!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘can’t exclude file from js minify’ is closed to new replies.