Set response content-type and strip URL parameters in static file handler