The static web server does nothing but look at extended attributes to determine the MIME-type of file to serve. It might follow rs-serve by using libmagic; or it could overhaul this approach and instead do something sensible with filename extensions.