I observed the load_user() method is trigger even when loading a static resource like a css file. I confirmed it after looking into the source code. it all happens in my development environment.
It may be ok in production for we will use a web server to handle the static resources.
Thanks for pointing this out. Ideally in production static resources wouldn't be loaded via Flask. However as that may not always be the case this is probably worth looking into patching. I'd be happy to accept pull requests for this. :)
It's useful patch, thanks. However, I don't see it in master. Could you please accept it?
It has been reverted at #51
Thanks for pointing out.
@dtheodor feel free to propose a patch.
So any chance the check-disabling code is back into tree? Just provide a configuration option for those who haven't ever heard of 'frontend server'. Like LOGIN_FORCE_STATIC_PATH_CHECK