           (.setAsynchronousWorkersCore config asynchronous-workers-core))
         (when asynchronous-workers-max
           (.setAsynchronousWorkersMax config asynchronous-workers-max))
-        (when (boolean? heuristic-caching-enabled)
+        (when (instance? Boolean heuristic-caching-enabled)
           (.setHeuristicCachingEnabled config heuristic-caching-enabled))
         (when heuristic-coefficient
           (.setHeuristicCoefficient config heuristic-coefficient))

        ;;    config never-cache-http10-responses-with-query-string))
        (when revalidation-queue-size
          (.setRevalidationQueueSize config revalidation-queue-size))
        (when (boolean? shared-cache)
          (.setSharedCache config shared-cache))
        (when (boolean? weak-etag-on-put-delete-allowed)
          (.setWeakETagOnPutDeleteAllowed config weak-etag-on-put-delete-allowed))
        (.build config)))))


                    revalidation-queue-size
                    shared-cache
                    weak-etag-on-put-delete-allowed]} cc]
        (when (instance? Boolean allow-303-caching)
          (.setAllow303Caching config allow-303-caching))
        (when asynchronous-worker-idle-lifetime-secs
          (.setAsynchronousWorkerIdleLifetimeSecs
