[
https://issues.apache.org/jira/browse/TS-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534597#comment-13534597
]
James Peach commented on TS-1622:
---------------------------------
At the TSAPI layer, plugins deal with up to 3 responses
(TSHttpTxnClientRespGet, TSHttpTxnServerRespGet, TSHttpTxnCachedRespGet), so
with the above API, we would have to figure out which response is intended.
IMHO, it's reasonable to want to know whether requests or responses are
cacheable, so maybe int TSHttpHdrIsCacheable(TSMBuffer bufp, TSMLoc offset)?
This isn't going to do quite the same thing as
HttpTransact::is_response_cacheable(), but it's probably more general and
useful.
> Add an API to query if a response header would be cacheable
> -----------------------------------------------------------
>
> Key: TS-1622
> URL: https://issues.apache.org/jira/browse/TS-1622
> Project: Traffic Server
> Issue Type: Improvement
> Reporter: Leif Hedstrom
>
> It would be useful for a plugin to be able to take e.g. a response header (a
> Hdr object) and ask the HttpSM if this response would be cacheable or not. It
> should use the same logic (and configs) as the core does normally.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira