Adding support for conditionally trying static files.