CSS not publishing

My css is simply not publishing properly to the environment. If I change the modules CSS, it does not change on the web page. This is an internal environment. Version: 10.0.825. This bug has been around for a little while and I have made do.

This is comparing like for like with Chrome Dev tools in the most recently published version on the development environment. What is extremely odd is It seems that some changes are kept in the publish. (some comments and new things are kept) but adjustments in sizes and things such as that do not seem to be published.

This is like a timestamp, or a version number. Every time you publish the module that contains the theme being changed, the file storing the CSS is just updated, and this "version" number is also updated.

Let's say that you made a change and now the version is 1909.

If you don't publish the consumers, they will use the old version number in the link (1907).The browser will see this, and will find in its own cache a file that matches this name, and will use it instead of download the new file with the changes. You will not see any changes in your page, unless you refresh the page forcing the browser to download the new version from the server (the file is the same and no matter the version number it will be downloaded).

To guarantww that when a user enters a page it will see the most recent style, you need to publish your consumer modules, so that they become aware of the change in the version number and start to use this new number, forcing the browser to download the file, again, from server, instead of using the one in the cache.

At least, the behavior you described, more or less, is what happens when you don't publish the consumers after changing the style sheet in a producer module.

What I had found was a small quirk where there is a loop of producers and consumers meaning I needed to publish module A, then B and then A again to ensure all the changes were made. I realise this is not standard practice to have a consumer consuming a consumer, but unfortunately this can happen occasionally without realising it.

This is slightly more complicated than your answer, but at the core, you are totally right. As with a lot of things, publishing everything a lot of times tends to fix it.