Replace undefined function canCache with canCacheRequest