@Override
    public CookieSpec create(final HttpContext context) {
        if (cookieSpec == null) {
            lock.lock();
            try {
                if (cookieSpec == null) {
                    this.cookieSpec = IgnoreSpecSpec.INSTANCE;
                }
            } finally {
                lock.unlock();
            }
        }
        return this.cookieSpec;
    }
{@link CookieSpecFactory} implementation that ignores all cookies.

@since 4.4
httpclient5/src/main/java/org/apache/hc/client5/http/impl/cookie/IgnoreCookieSpecFactory.java