Changes not showing up correctly in view mode in ds:example and integration

Hello, I wanted to report a problem I’m having with my OnlyOffice installation. In particular, I tested this in my own integration but also with ds:example and it has happened in both.

When I’m editing a document, I click save and then go immediately to the viewer, the most recent changes don’t show up for the ‘Mobile’ and ‘Embedded’ views. This also happens with Download and Convert functionalities. The only functionality that obtains the latest without delay is the ‘Desktop’ view mode.

In my integration this is critical because once the user saves the file in the desktop edit mode, it shows the document in the read-only embedded view and it does not have the most recent changes. I assumed because this happened in the ds:example aswell, it was not a matter of how I’m integrating it but I’m not exactly sure.

If I remember correctly, in an earlier version there was a loading screen for when it was loading the document? I assumed to give the storage service some time to fetch the newest changes since there’s 5 seconds or so I’ve read. This time around I didn’t get any loading screen, it just lands the document on the browser both when creating a new document and also loading an existing one. That’s something I found odd aswell.

Document Server version: 9.0.4.1 (I also tried in 8.0.1 and this same thing happened aswell in the integration and ds:example. I tried with an earlier version and for the integration it worked fine, with the loading screen seeming to fetch the newest changes, but it did not have ds:example implemented to test).
Type of installation of the Document Server: Docker, utilizing latest build.
OS: Ubuntu 24.04.2 LTS
Browser version: Firefox 141.0.3 (64-bit)
Additional information: I modified the local.json to put token parameters in false and also JWT_ENABLED = false as an environment variable.

I can give additional info if needed. Thanks!

Hello,
By “saving,” do you mean using the Forcesave icon? Force saving is not the actual document saving — the final version with the changes is compiled only after all editor windows are closed. Then, the version is compiled and stored in the storage. You can learn more about saving mechanisms here - Saving | ONLYOFFICE

Ah, yes, both with forcesaving and by closing the editor window after all changes have been saved, I get this problem. If I immediately open the embedded view mode, it doesn’t show the latest changes. If I wait a few seconds before opening the view, the changes do appear. This is fine, I expect this.
Though I recall that in earlier versions, opening the embedded view would show a loading screen, and then the latest content appeared even if I opened it right away.
Is this a configuration issue, or should I add a workaround in my integration to ensure the embedded view always fetches the latest version? I’m not sure if this makes sense, I’m so sorry :'.

This happens in your case because embedded mode does not include a live viewer: it does not display changes in real time, only after the file is actually saved (which occurs when all tabs with the document are closed). Embedded mode is designed primarily for viewing or previewing inside another app or webpage (of saved documents). Regarding the changes not being visible in mobile mode - please provide a screen recording that reproduces the issue.