Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:cached_check(t)

HTTP:cached_check(t)

Checks whether a URI has been cached or not.

Syntax

HTTP:cache_check(t);

Arguments

Name Description

t

A table which specifies the cached URI.

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
t={}
t["uri"] = "/3.htm";
ret=HTTP:cached_check(t)
if ret then
debug("cached with id %s\n", ret);
else
debug("not cached\n");
end
}

Supported Version

FortiADC version 5.3.x and later.

HTTP:cached_check(t)

HTTP:cached_check(t)

Checks whether a URI has been cached or not.

Syntax

HTTP:cache_check(t);

Arguments

Name Description

t

A table which specifies the cached URI.

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
t={}
t["uri"] = "/3.htm";
ret=HTTP:cached_check(t)
if ret then
debug("cached with id %s\n", ret);
else
debug("not cached\n");
end
}

Supported Version

FortiADC version 5.3.x and later.