I know how javascript files in the 'public' section of the sidebar work... and how they are not public per-se but imported into Site or Page code.
However the support article also talks about public TEXT files, so I wonder how they are supposed to work, or if it's just a slip up in the docs:
https://support.wix.com/en/article/working-with-the-site-structure-sidebar-9621920#public
hi Martin,
This feature is a relic from an older version of Wix code.
It allows you, for example, to store a long string as a publicly accessible file.
You use it just like other public/backend files.
https://support.wix.com/en/article/working-with-javascript-in-wix-code