Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Configuration Files > cache.config
cache.config
Help | Content Gateway | Version 8.1.x
The cache.config file defines how the proxy caches Web objects. You can add caching rules to specify the following configuration:
*
*
*
*
 
Important 
After you modify this file, run content_line -x from the Content Gateway bin directory (/opt/WCG/bin) to apply the changes. When you apply the changes to a node in a cluster, Content Gateway applies the changes to all nodes in the cluster.
Format
Each line in the cache.config file contains a caching rule. Content Gateway recognizes three space-delimited tags:
primary_destination=value secondary_specifier=value action=value
The following table lists the possible primary destinations and their allowed values.
 
See Specifying URL regular expressions (url_regex) for information on using regular expressions.
Secondary specifiers are optional in the cache.config file. The following table lists the possible secondary specifiers and their allowed values.
 
Note 
 
*
*
*
The following table lists the possible actions and their allowed values.
 
*
never-cache configures the proxy to never cache specified objects.
*
ignore-no-cache configures the proxy to ignore all Cache-Control: no-cache headers.
*
ignore-client-no-cache configures the proxy to ignore Cache-Control: no-cache headers from client requests.
*
ignore-server-no-cache configures the proxy to ignore Cache-Control: no-cache headers from origin server responses.
*
d for days (for example 2d)
*
h for hours (for example, 10h)
*
m for minutes (for example, 5m)
*
s for seconds (for example, 20s)
Examples
The following example configures the proxy to never cache FTP documents requested from the IP address 112.12.12.12:
dest_ip=112.12.12.12 scheme=ftp action=never-cache
The following example configures the proxy to keep documents with URLs that contain the regular expression politics and the path prefix/viewpoint in the cache for 12 hours:
url_regex=politics prefix=/viewpoint pin-in-cache=12h
The following example configures the proxy to revalidate gif and jpeg objects in the domain mydomain.com every 6 hours and all other objects in mydomain.com every hour:
dest_domain=mydomain.com suffix=gif revalidate=6h
dest_domain=mydomain.com suffix=jpeg revalidate=6h
dest_domain=mydomain.com revalidate=1h
 
Note 

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Configuration Files > cache.config
Copyright 2016 Forcepoint LLC. All rights reserved.