[fix] don't cache images if server config don't allow it