Does Bixby cache the requests on server?

后端 未结 2 1670
生来不讨喜
生来不讨喜 2021-01-20 18:31

In my application all the utterances from Bixby are redirected to an action which makes an api call. This api call returns the response to Bixby for the user utterance. Rece

2条回答
  •  梦毁少年i
    2021-01-20 19:01

    In addition to cacheTime provided by the client, the Server can sometimes provide additional directives (max-age and no-store or no-cache) in the Cache-Control header. When this occurs, this is what Bixby does:

    1. no-cache or no-store: Bixby will not cache anything. This will override the cacheTime variable provided by client.
    2. time of response + max-age < current time: Remove response from cache (even if client requested a longer cacheTime)
    3. time of response + cacheTime < current time: Remove response from cache (even if response provided a longer max-age)

提交回复
热议问题