HTTP:res_cached()
Check whether or not a response is from cache. If yes, then it checks whether it is regular cache or dynamic cache.
Syntax
HTTP:res_cached();
Arguments
N/A
Events
Applicable in HTTP_RESPONSE.
Example
when HTTP_RESPONSE {
ret = HTTP:res_cached();
if ret then
debug("HTTP:res_cached() response from cache !!!!\n");
else
debug("HTTP:res_cached() response NOT from cache\n");
end
}
Supported Version
FortiADC version 5.3.x and later.