Fortinet white logo
Fortinet white logo

CLI Reference

config wanopt webcache

config wanopt webcache

Note

This command is available for model(s): FortiGate 1000D, FortiGate 101E, FortiGate 101F, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 201E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3301E, FortiGate 3401E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 401E, FortiGate 5001D, FortiGate 5001E1, FortiGate 500D, FortiGate 501E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 601E, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 91E, FortiGate 92D, FortiGate VM64, FortiWiFi 51E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 1100E, FortiGate 140E-POE, FortiGate 140E, FortiGate 200E, FortiGate 2200E, FortiGate 300E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3300E, FortiGate 3400E, FortiGate 3600E, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001E, FortiGate 500E, FortiGate 50E, FortiGate 600E, FortiGate 60E DSLJ, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 90E, FortiGateRugged 30D, FortiGateRugged 35D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 60E DSLJ, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 80F 2R.

Configure global Web cache settings.

config wanopt webcache
    Description: Configure global Web cache settings.
    set always-revalidate [enable|disable]
    set cache-by-default [enable|disable]
    set cache-cookie [enable|disable]
    set cache-expired [enable|disable]
    set default-ttl {integer}
    set external [enable|disable]
    set fresh-factor {integer}
    set host-validate [enable|disable]
    set ignore-conditional [enable|disable]
    set ignore-ie-reload [enable|disable]
    set ignore-ims [enable|disable]
    set ignore-pnc [enable|disable]
    set max-object-size {integer}
    set max-ttl {integer}
    set min-ttl {integer}
    set neg-resp-time {integer}
    set reval-pnc [enable|disable]
end

config wanopt webcache

Parameter

Description

Type

Size

always-revalidate

Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client.

option

-

Option

Description

enable

Enable revalidation of requested cached objects.

disable

Disable revalidation of requested cached objects.

cache-by-default

Enable/disable caching content that lacks explicit caching policies from the server.

option

-

Option

Description

enable

Enable caching content that lacks explicit caching policies.

disable

Disable caching content that lacks explicit caching policies.

cache-cookie

Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached.

option

-

Option

Description

enable

Cache cookies.

disable

Do not cache cookies.

cache-expired

Enable/disable caching type-1 objects that are already expired on arrival.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

default-ttl

Default object expiry time. This only applies to those objects that do not have an expiry time set by the web server.

integer

Minimum value: 1 Maximum value: 5256000

external

Enable/disable external Web caching.

option

-

Option

Description

enable

Enable external Web caching.

disable

Disable external Web caching.

fresh-factor

Frequency that the server is checked to see if any objects have expired. The higher the fresh factor, the less often the checks occur.

integer

Minimum value: 1 Maximum value: 100

host-validate

Enable/disable validating "Host:" with original server IP.

option

-

Option

Description

enable

Enable validating "Host:" with original server IP.

disable

Disable validating "Host:" with original server IP.

ignore-conditional

Enable/disable controlling the behavior of cache-control HTTP 1.1 header values.

option

-

Option

Description

enable

Enable ignoring cache-control HTTP 1.1 header values.

disable

Disable ignoring cache-control HTTP 1.1 header values.

ignore-ie-reload

Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header.

option

-

Option

Description

enable

Enable Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header.

disable

Disable Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header.

ignore-ims

Enable/disable ignoring the if-modified-since (IMS) header.

option

-

Option

Description

enable

Enable ignoring the if-modified-since (IMS) header.

disable

Disable ignoring the if-modified-since (IMS) header.

ignore-pnc

Enable/disable ignoring the pragma no-cache (PNC) header.

option

-

Option

Description

enable

Enable ignoring the pragma no-cache (PNC) header.

disable

Disable ignoring the pragma no-cache (PNC) header.

max-object-size

Maximum cacheable object size in kB. All objects that exceed this are delivered to the client but not stored in the web cache.

integer

Minimum value: 1 Maximum value: 2147483

max-ttl

Maximum time an object can stay in the web cache without checking to see if it has expired on the server.

integer

Minimum value: 1 Maximum value: 5256000

min-ttl

Minimum time an object can stay in the web cache without checking to see if it has expired on the server.

integer

Minimum value: 1 Maximum value: 5256000

neg-resp-time

Time in minutes to cache negative responses or errors.

integer

Minimum value: 0 Maximum value: 4294967295

reval-pnc

Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns.

option

-

Option

Description

enable

Enable revalidation of pragma-no-cache (PNC).

disable

Disable revalidation of pragma-no-cache (PNC).

config wanopt webcache

config wanopt webcache

Note

This command is available for model(s): FortiGate 1000D, FortiGate 101E, FortiGate 101F, FortiGate 1101E, FortiGate 1200D, FortiGate 140D-POE, FortiGate 140D, FortiGate 1500DT, FortiGate 1500D, FortiGate 2000E, FortiGate 201E, FortiGate 2201E, FortiGate 2500E, FortiGate 3000D, FortiGate 300D, FortiGate 301E, FortiGate 3100D, FortiGate 3200D, FortiGate 3301E, FortiGate 3401E, FortiGate 3601E, FortiGate 3700D, FortiGate 3800D, FortiGate 3810D, FortiGate 3815D, FortiGate 401E, FortiGate 5001D, FortiGate 5001E1, FortiGate 500D, FortiGate 501E, FortiGate 51E, FortiGate 52E, FortiGate 600D, FortiGate 601E, FortiGate 61E, FortiGate 61F, FortiGate 800D, FortiGate 81E-POE, FortiGate 81E, FortiGate 81F-POE, FortiGate 81F, FortiGate 900D, FortiGate 91E, FortiGate 92D, FortiGate VM64, FortiWiFi 51E, FortiWiFi 61E, FortiWiFi 61F, FortiWiFi 81F 2R-POE, FortiWiFi 81F 2R.

It is not available for: FortiGate 100EF, FortiGate 100E, FortiGate 100F, FortiGate 1100E, FortiGate 140E-POE, FortiGate 140E, FortiGate 200E, FortiGate 2200E, FortiGate 300E, FortiGate 30E 3G4G GBL, FortiGate 30E 3G4G INTL, FortiGate 30E 3G4G NAM, FortiGate 30E, FortiGate 3300E, FortiGate 3400E, FortiGate 3600E, FortiGate 3960E, FortiGate 3980E, FortiGate 400D, FortiGate 400E Bypass, FortiGate 400E, FortiGate 40F 3G4G, FortiGate 40F, FortiGate 5001E, FortiGate 500E, FortiGate 50E, FortiGate 600E, FortiGate 60E DSLJ, FortiGate 60E-POE, FortiGate 60E, FortiGate 60F, FortiGate 80E-POE, FortiGate 80E, FortiGate 80F Bypass, FortiGate 80F-POE, FortiGate 80F, FortiGate 90E, FortiGateRugged 30D, FortiGateRugged 35D, FortiGateRugged 60F 3G4G, FortiGateRugged 60F, FortiGateRugged 90D, FortiWiFi 30E 3G4G INTL, FortiWiFi 30E 3G4G NAM, FortiWiFi 30E, FortiWiFi 40F 3G4G, FortiWiFi 40F, FortiWiFi 50E 2R, FortiWiFi 50E, FortiWiFi 60E DSLJ, FortiWiFi 60E, FortiWiFi 60F, FortiWiFi 80F 2R.

Configure global Web cache settings.

config wanopt webcache
    Description: Configure global Web cache settings.
    set always-revalidate [enable|disable]
    set cache-by-default [enable|disable]
    set cache-cookie [enable|disable]
    set cache-expired [enable|disable]
    set default-ttl {integer}
    set external [enable|disable]
    set fresh-factor {integer}
    set host-validate [enable|disable]
    set ignore-conditional [enable|disable]
    set ignore-ie-reload [enable|disable]
    set ignore-ims [enable|disable]
    set ignore-pnc [enable|disable]
    set max-object-size {integer}
    set max-ttl {integer}
    set min-ttl {integer}
    set neg-resp-time {integer}
    set reval-pnc [enable|disable]
end

config wanopt webcache

Parameter

Description

Type

Size

always-revalidate

Enable/disable revalidation of requested cached objects, which have content on the server, before serving it to the client.

option

-

Option

Description

enable

Enable revalidation of requested cached objects.

disable

Disable revalidation of requested cached objects.

cache-by-default

Enable/disable caching content that lacks explicit caching policies from the server.

option

-

Option

Description

enable

Enable caching content that lacks explicit caching policies.

disable

Disable caching content that lacks explicit caching policies.

cache-cookie

Enable/disable caching cookies. Since cookies contain information for or about individual users, they not usually cached.

option

-

Option

Description

enable

Cache cookies.

disable

Do not cache cookies.

cache-expired

Enable/disable caching type-1 objects that are already expired on arrival.

option

-

Option

Description

enable

Enable setting.

disable

Disable setting.

default-ttl

Default object expiry time. This only applies to those objects that do not have an expiry time set by the web server.

integer

Minimum value: 1 Maximum value: 5256000

external

Enable/disable external Web caching.

option

-

Option

Description

enable

Enable external Web caching.

disable

Disable external Web caching.

fresh-factor

Frequency that the server is checked to see if any objects have expired. The higher the fresh factor, the less often the checks occur.

integer

Minimum value: 1 Maximum value: 100

host-validate

Enable/disable validating "Host:" with original server IP.

option

-

Option

Description

enable

Enable validating "Host:" with original server IP.

disable

Disable validating "Host:" with original server IP.

ignore-conditional

Enable/disable controlling the behavior of cache-control HTTP 1.1 header values.

option

-

Option

Description

enable

Enable ignoring cache-control HTTP 1.1 header values.

disable

Disable ignoring cache-control HTTP 1.1 header values.

ignore-ie-reload

Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header.

option

-

Option

Description

enable

Enable Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header.

disable

Disable Enable/disable ignoring the PNC-interpretation of Internet Explorer's Accept: / header.

ignore-ims

Enable/disable ignoring the if-modified-since (IMS) header.

option

-

Option

Description

enable

Enable ignoring the if-modified-since (IMS) header.

disable

Disable ignoring the if-modified-since (IMS) header.

ignore-pnc

Enable/disable ignoring the pragma no-cache (PNC) header.

option

-

Option

Description

enable

Enable ignoring the pragma no-cache (PNC) header.

disable

Disable ignoring the pragma no-cache (PNC) header.

max-object-size

Maximum cacheable object size in kB. All objects that exceed this are delivered to the client but not stored in the web cache.

integer

Minimum value: 1 Maximum value: 2147483

max-ttl

Maximum time an object can stay in the web cache without checking to see if it has expired on the server.

integer

Minimum value: 1 Maximum value: 5256000

min-ttl

Minimum time an object can stay in the web cache without checking to see if it has expired on the server.

integer

Minimum value: 1 Maximum value: 5256000

neg-resp-time

Time in minutes to cache negative responses or errors.

integer

Minimum value: 0 Maximum value: 4294967295

reval-pnc

Enable/disable revalidation of pragma-no-cache (PNC) to address bandwidth concerns.

option

-

Option

Description

enable

Enable revalidation of pragma-no-cache (PNC).

disable

Disable revalidation of pragma-no-cache (PNC).