
163
Appendix D
Configuration Files
Format
Each line in the
cache.config
file contains a caching rule. Traffic Server 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:
The secondary specifiers are optional in the
cache.config
file. The following table lists the possible
secondary specifiers and their allowed values:
The following table lists the possible actions and their allowed values:
NOTE
You can use more than one secondary specifier in a rule. However, you cannot repeat a
secondary specifier.
Primary Destination
Allowed
dest_domain
Requested domain name
dest_host
Requested hostname
dest_ip
Requested IP address
url_regex
Regular expression to be found in a URL
Secondary Specifier
Allowed Value
time
A time range, such as 08:00-14:00
src_ip
The IP address of the client
prefix
A prefix in the path part of a URL
suffix
A file suffix in the URL
port
A requested URL port
method
A request URL method; one of the following:
•
get
•
post
•
put
•
trace
scheme
A request URL protocol; one of the following:
•
HTTP
•
FTP
Action
Value
action
never-cache
ignore-no-cache
pin-in-cache
Enter the amount of time you want to keep the object(s) in the cache.
Following time formats are allowed:
•
h for hours, e.g. 10h
•
m for minutes, e.g. 5m
•
s for seconds, e.g. 20s
•
mixed units, e.g. 1h15m20s
revalidate
Enter the amount of time you want to consider the object(s) fresh. Use the
same time formats as
pin-in-cache
.