You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by vijay mamidi <vi...@gmail.com> on 2021/02/02 22:15:01 UTC
API to accessing flag set by TSHttpTxnServerRespNoStoreSet
I propose TSHttpTxnServerRespNoStoreGet API as an addition to the InkAPI. (
https://github.com/apache/trafficserver/pull/7439)
Usage : A plugin can use TSHttpTxnServerRespNoStoreSet to make ATS not
cache the Origin Server's response. Traffic Server does the right thing
using the flag api_server_response_no_store, but there is no API to 'get'
this flag for other plugins to use it. This PR provides 'GetAPI' for the
flag set by TSHttpTxnServerRespNoStoreSet.
For example, the cache promote plugin uses this API, and I plan to use this
in my new experimental plugin,
https://github.com/apache/trafficserver/pull/7470. This plugin tries to
reduce the origin server's impact on incoming requests by filling the cache
asynchronously.
Thanks,
Vijay
Re: API to accessing flag set by TSHttpTxnServerRespNoStoreSet
Posted by Sudheer Vinukonda <su...@yahoo.com.INVALID>.
+1 Sounds reasonable!
On Tuesday, February 2, 2021, 02:15:17 PM PST, vijay mamidi <vi...@gmail.com> wrote:
I propose TSHttpTxnServerRespNoStoreGet API as an addition to the InkAPI. (
https://github.com/apache/trafficserver/pull/7439)
Usage : A plugin can use TSHttpTxnServerRespNoStoreSet to make ATS not
cache the Origin Server's response. Traffic Server does the right thing
using the flag api_server_response_no_store, but there is no API to 'get'
this flag for other plugins to use it. This PR provides 'GetAPI' for the
flag set by TSHttpTxnServerRespNoStoreSet.
For example, the cache promote plugin uses this API, and I plan to use this
in my new experimental plugin,
https://github.com/apache/trafficserver/pull/7470. This plugin tries to
reduce the origin server's impact on incoming requests by filling the cache
asynchronously.
Thanks,
Vijay