FHIR Chat · Annotation Client: set cache control · implementers

Stream: implementers

Topic: Annotation Client: set cache control


view this post on Zulip Christophe Spielmann (Feb 05 2021 at 09:41):

Hello,
I am using the annotation client and I would like to set the cache-control as specified for the fluent client below

Bundle response = client
.search()
.forResource(Patient.class)
.returnBundle(Bundle.class)
.cacheControl(new CacheControlDirective().setNoCache(true)) // ← add a directive
.execute();

I am not able to find how to do it.

Moreover, it is not clear How I can force the HAPI server to NOT use the cache for all search requests.
I have the following settings into hapi.properties but they do not seem to work :
reuse_cached_search_results_millis=-1
I tried: dao_config.reuse_cached_results_timeout_millis=0

view this post on Zulip Christophe Spielmann (Feb 05 2021 at 10:57):

for server setting: 'reuse_cached_results_timeout_millis=0' works

view this post on Zulip David Pyke (Feb 05 2021 at 13:59):

You're better to ask this in the #hapi stream

view this post on Zulip Christophe Spielmann (Feb 16 2021 at 13:46):

ok, thanks. sorry for the spam.


Last updated: Apr 12 2022 at 19:14 UTC