redirect for cached downloads on gcs, refactor with common module