use pathname for matching static files