Adding some verifications for static file serving.