Theme compiled cache busting doesnt seem to be working

0
Hi guys, our project runs on mendix 9.24.34 and in recent times none of the styling changes/new styling that we've deployed have come through in the cloud.    I've seen some things about cache busting, but because mendix creates a theme-compiled file I have no idea how to add cache busting here as the compiling happens outside of my control. Besides it appears that theme compiled already has innate cache busting as the compiled file name contains a string with random numbers.   Can anyone point me in the right direction here? It's pretty frustrating having new features not work because the styling doesn't update. (I cannot force all of our 100+ users to constantly clear their cache and need a solid and consistent solution)   Thanks in advance!  
asked
2 answers
1

Hi Lan Gnezda

 

This is a very common issue, You can do CacheBusting import the project in Vs code or something similar to it, Then check for index.html. In the index.html file  check the dojoconfig

<script>

            dojoConfig = {

                isDebug: false,

                useCustomLogger: true,

                async: true,

                baseUrl: "mxclientsystem/dojo/",

                cacheBust: "{{cachebust}}",

                rtlRedirect: "index-rtl.html"

            };

        </script>

 

After this add this line 

<script src="mxclientsystem/mxui/mxui.js?{{cachebust}}"></script>

 

I hope this is helpful!

answered
2

What does your index.html look like and does the cachebust parameter reflect your "random numbers"? See the documentation:

Whenever cache busting breaks, it is likely that the query parameters have become hard coded (for example ?638184496048312490) instead of dynamic (for example ?{{cachebust}})

 

answered