enable expiration and compress option for get wrap function