<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 17 Mar 2017, at 14:30, Wessel, Keith <<a href="mailto:kwessel@illinois.edu" class="">kwessel@illinois.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Wondered how one would configure the MDA to do a conditional get of metadata in a bean using the file backed HTTP resource class. I'm a couple versions behind with this software (0.9.1), so if this is the default in newer versions, that'd be great. Otherwise, it seems that the default is to not do a conditional get, and my instance is pulling down the InCommon metadata every five minutes (ugh).<br class=""></div></div></blockquote><div><br class=""></div><div>There's no change in later versions of the MDA. Assuming you are using DOMResourceSourceStage to pick up your metadata, the behaviour comes down to the HTTPResource you construct for your DOMResource. One of the constructor arguments is an HTTP client, which in turn probably comes from HttpClientBuilder from java-support. The default behaviour at that level really has to be non-cacheing, so that the client doesn't have to find somewhere to cache what might be a very large document.</div><div><br class=""></div><div>However, at that level there are also FileCachingHttpClientBuilder and InMemoryCachingHttpClientBuilder classes you could use instead to get the desired behaviour.</div><div><br class=""></div><div>You'll gather this is one of the things I think can be done at least in principle but which I haven't had time to try out and generate an example for in practice (see for example <a href="https://github.com/iay/mdq-server-docker/issues/7" class="">https://github.com/iay/mdq-server-docker/issues/7</a>). I'd be happy to work on this with you so that we can write such an example for the general benefit.</div><div><br class=""></div><div>Cheers,</div><div><br class=""></div></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div class="">    -- Ian<br class=""></div><div class=""><span class="Apple-style-span" style="font-size: medium;"><br class=""></span></div></span></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>