add some returns to prevent unneeded returns in the js
actually use caching for compressed requests, only use pathname for matching static files