I have an application which I don't want to modify.
It has multiple directories with static files which are defined as static via
check-static directive in uwsgi's .ini-file. My problem is that each request to
/api endpoint checks all directories for static content with
lstat() system call and it take.. a little time, really, just 0.0005 seconds per call, but aren't zero seconds sounds better?
It would be nice if all the static content would be accessed with
/static/ prefix in URL so I could replace
static-map but I don't want to modify the application, any workaround is enough. If only uwsgi had option like:
check-static-exclude = /api
Maybe it is possible to achieve via uwsgi routing subsystem but I didn't find anything suitable in docs.
Update: todo re-check routes