cache: make offline usage work