Enable server push conditionally

Dear guru, could you please tell me whether is it possible to enable server push support conditionally, say based on some system property?

No, it’s not possible

The closest thing is manual push mode, I believe Server Push | Advanced Topics | Vaadin Docs

web.xml configuration is possibly interesting to you, too: Server Push | Advanced Topics | Vaadin Docs