Select to view content in your preferred language

Experience builder service worker breaks my experiences !

429
1
09-17-2024 03:06 AM
NicolasGIS
Frequent Contributor

Hello,

I now have been reported 2 cases of users notifying me that they can't see my experiences built with experience builder.

Basically, it keeps loading with the loading spinner.

I debugged it with them and for each one of them, a different javascript file have been partially put in cache by the service worker. Partially meaning, the file is truncated as a consequence its execution breaks the application.

In one case, it was: /apps/experiencebuilder/jimu-core/data-source.js

In the other: /apps/experiencebuilder/experience/index.js 

When debbuging I see the following (200 OK from service worker) :

NicolasGIS_0-1726567264846.png

Trying to display the file, it is truncated (check the very bottom of data-source.js)

NicolasGIS_1-1726567359785.png

This is very problematic because clearing the cache does not solve the issue. You have to manually unregister the experience builder service worker to fix this issue.

 

Any idea how could this have happened ?

By the way, I am running 11.3.

 

Thanks for listening and hopefully helping !

 

Best regards,

 

Nicolas

/cc @CedricDespierreCorporon 

0 Kudos
1 Reply
YueyangLi
Esri Contributor

@NicolasGIS  It seems that the cache is incorrect. Can you try to clear all the cache? Click the 'Clear site data' button in the 'Application' tab for Chrome.

YueyangLi_0-1727336062827.png

Please let me know if it doesn't work.

0 Kudos