Tabs layout: closed tabs re-appear when refreshing browser

tabs = panel.Tabs((foo), closable=True)
tabs.append(foo1)
tabs.append(foo2)
tabs.show()

In web browser:
Close some tabs (click on X)
F5 (refresh page)
All the closed tabs are back with their content!
I need them to remain closed and clear all the memory they use!

I also add tabs on run time with a button and may end up with dozens of tabs. The content in the tabs use a lot of RAM.

Is this behaviour normal? Am I doing something wrong?

Please and thank you!

This is a known issue that I’m hoping to fix soon: https://github.com/holoviz/panel/issues/621

A fix is now available here: https://github.com/holoviz/panel/pull/973/ and will be in the 0.8 release due out tomorrow or Wednesday.