fix issue #3: use only path component of static files and ignore possible query params