Documentation page autorefresh.

Hi, I am reading your documentation online. The page auto-refreshes every 5 minutes or so. What is the point? Can I disable this somehow?

For instance when I am on the dialog documentation page (https://vaadin.com/docs/latest/components/dialog) it autorefreshes and I am losing currently opened src examples…

I guess you have something wrong in your proxy setup or something like that. Vaadin’s browser part sends heartbeat request to server every 5mins. That normally does not refresh the page, but if there is a configuration issue somewhere, it could happen. For example you have multiple servers and not using sticky sessions.

@Tatu2 I think he means your documentation is refreshing :) (not his own application)

We used to have this issue (3 years ago) on our docs where the embedded Flow examples would stop rendering in case the session had expired. To mitigate it, we added this workaround that checks for the heartbeat or forces a refresh (after 5 mins since the last response) docs/frontend/demo/session-verification.ts at latest · vaadin/docs · GitHub

It’s possible that the workaround no longer does its job as expected. It’s also possible it’s not even needed anymore.

1 Like

Well, the “workaround” “works”. The question is: can you please stop your docs page from refreshing every 5 minutes?

I am just reading docs with flow examples. You mentioned session and heartbeat. None of this is needed since there is no state changes to remember on the server.