.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "TSHTTPTXNISCACHEABLE" "3ts" "Nov 02, 2023" "9.2" "Apache Traffic Server" .SH NAME TSHttpTxnIsCacheable \- TSHttpTxnIsCacheable API function .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #include .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSHttpTxnIsCacheable(\fI\%TSHttpTxn\fP txnp, \fI\%TSMBuffer\fP request, \fI\%TSMBuffer\fP response) .UNINDENT .SH DESCRIPTION .sp Determine if an upstream response is cacheable according to the current Traffic Server configuration and state. All of the arguments must have be obtained via other API calls prior to calling this function. .sp The \fIrequest\fP and \fIresponse\fP arguments must refer to HTTP header objects. These are treated as the request and response for a transaction respectively. Based on the transaction state from \fItxnp\fP and the contents of the request and response, this returns \fBTS_SUCCESS\fP if the response is cacheable, \fBTS_ERROR\fP otherwise. .SH COPYRIGHT 2023, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .