Add cache rewriting for app install (bug 870993)