• Resolved arnaukokoro

    (@arnaukokoro)


    Hi,

    I have Divi Theme and WP Total Cache with external CDN.

    When wordpress is trying to request es6-promise.auto.min.js.gzip to CDN it adds a double slash in this path:
    /wp-content/themes/Divi/common//scripts/es6-promise.auto.min.js.gzip?ver=4.2.2 and that’s why it fails. If I try to request it manually with one slash it works. This file is cached on CDN.

    Thanks!

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

    (@vmarko)

    Hello @arnaukokoro

    Thank you for reaching out and I am happy to help!
    Can you please sahre more informaton about this, like sharing the website URL, and the CDN provider, along with the CDN Type selected in the W3 Total Cache?

    Also, is this the only file wihch filepath has two forwardshash in the url or is this the issue for all files?
    Thanks!

    Thread Starter arnaukokoro

    (@arnaukokoro)

    Hi @vmarko

    Thanks for helping!

    We use AWS Cloudfront CDN with S3. We have selected Cloudfront + S3 on WP Total Cache CDN configuration.

    Yes, this is the only file, everything else is working as expected. It happens when trying to “Exit Divi Editor”. For example, after editing a Divi page we press “Exit editor” and we can see a lot of request to the CDN files but this one fails and it cause Divi not exiting editing mode as autoreload. If we refresh the page (F5) it does exit editing mode.

    Many thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @arnaukokoro

    Thank you for your feedback.
    Well, this is interesting and this is the first time.
    Can you please try to add this file to Performance>CDN>Advanced>Rejected files: like:

    /wp-content/themes/Divi/common//scripts/es6-promise.auto.min.js.gzip?ver=4.2.2

    Save all settings sand purge the cache and also purge the CDN URL for this, and let me know if the problem persist.

    Thanks!

    Thread Starter arnaukokoro

    (@arnaukokoro)

    Thanks @vmarko

    I add that path on files rejected but on the console (network) wordpress still trying to reach the file on CDN.

    How can I do it?

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @arnaukokoro

    Thank you for your feedback
    I’ve just realized that I made a mistake in the URL and added a double slash in the URL that should be excluded.
    Can you please remove this and only add:
    /wp-content/themes/Divi/common/scripts/es6-promise.auto.min.js.gzip?ver=4.2.2


    Thanks!

    Thread Starter arnaukokoro

    (@arnaukokoro)

    Hi @vmarko

    Still trying to fetch from CDN after excluding that path. Also tried these paths:

    wp-content/themes/Divi/common/scripts/es6-promise.auto.min.js.gzip
    wp-content/themes/Divi/common/scripts/es6-promise.auto.min.js.gzip?ver=4.2.2/wp-content/themes/Divi/common//scripts/es6-promise.auto.min.js.gzip
    /wp-content/themes/Divi/common//scripts/es6-promise.auto.min.js.gzip?ver=4.2.2
    {wp_content_dir}/themes/Divi/common//scripts/es6-promise.auto.min.js.gzip?ver=4.2.2
    {wp_content_dir}themes/Divi/common//scripts/es6-promise.auto.min.js.gzip


    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @arnaukokoro

    Thank you for your feedback.
    It’s very difficult to troubleshoot this as the problem is a single file. Can you please share the screenshot of the Performance>CDN, and also, can you check the Cloudfront and see if that file is there with the correct path
    Thanks!

    Thread Starter arnaukokoro

    (@arnaukokoro)

    Hi @vmarko

    I tried adding {wp_content_dir}themes/Divi/common/scripts/* and {wp_content_dir}themes/Divi/common//scripts/* on CDN exclude path and it works for other files on that folder but not for es6-promise.auto.min.js.gzip file. Worpress still trying to fetch it from CDN.

    Yes, I checked it out that the file is on that folder, the problem is that worpress is trying to fetch it from //script instead of /scripts.

    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @arnaukokoro

    Thank you for your feedback.
    Are there any other files in the /scripts/ folder? And to clarify, you have purged the CDN after the exclusion?

    Thanks!

    Thread Starter arnaukokoro

    (@arnaukokoro)

    Hi @vmarko

    Yes, there are 6 files in total: es6-promise (js, gzip), react-dom (js, gzip) and react (js, gzip). I saw on console network that now Worpress fetch react-dom from server but still trying to fetch es6-promise from CDN.

    I will try again to purge CDN with this configuration.

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.