added check for static files, which are returned as an input stream