Nextcloud / richdocuments close document after reload page

Is there any way that refreshing the page (F5) doesn’t close open docx, xlxs etc. documents?
With the nextcloud + onlyoffice plugin it is possible to refresh the page and the opened document is not closed.