function generateExpirationHeaders(params, datetime) {
    const { lifecycleConfig, objectParams, mpuParams, isVersionedReq } = params;

    if (!lifecycleConfig || isVersionedReq) {
        return {};
    }

    const lcfg = LifecycleConfiguration.getConfigJson(lifecycleConfig);

    if (objectParams) {
        return _generateExpHeadersObjects(lcfg.Rules, objectParams, datetime);
    }

    if (mpuParams) {
        return _generateExpHeadresMPU(lcfg.Rules, mpuParams, datetime);
    }

    return {};
}
generate response expiration headers
@param {object} params - params
@param {LifecycleDateTime} datetime - lifecycle datetime object
@returns {object} - expiration response headers