Hi Lars,
> It seems that BaseX is scanning the webapp directory including static for
> each request. Is that right? And is it possible to turn it off ?
Caching can be turned off by setting CACHERESTXQ to true. Moreover, a
sub-directory will not be parsed for RESTXQ files if it contains a
file named .ignore (see [1] for more details).
Christian
[1] http://docs.basex.org/wiki/RESTXQ#Preliminaries