/etc/squid-prefetch.conf is in squid-prefetch 1.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | ###############################################################################
#
# Squid-Prefetch Configuration File
#
# All options appear as
#
# option_name value
#
# Blank lines and anything after a "#" is ignored as a comment. This is the
# same format as the master squid configuration file. Options are taken first
# from this file, then from the master squid configuration, and then built-in
# defaults.
#
###############################################################################
#
# prefetch_user, prefetch_group: Userid and group to run as. If set
# to non-root, the prefetch program will discard any superuser
# privileges it has and run instead as this user. Common userids for
# this are "proxy" or "nobody". Make sure that user has access to the
# access-log file or squid-prefetch will not run. Numeric ids are
# acceptable.
#
#prefetch_user root
#prefetch_group root
#
# squid_config_file: Pathname of the master squid configuration file for
# reading options. Currently, the only option that would be read from that
# location are the "cache_access_log" and "http_port" options.
#
#squid_config_file /etc/squid/squid.conf
#
# http_proxy: IP address to use for accessing the squid cache. Since the
# prefetch program must have access to the squid log files, it's reasonable to
# assume that squid is running on the local host.
#
#http_host 127.0.0.1
#
# http_port: What port number to use for accessing the squid cache. Squid
# normally runs on port 3128 but can be changed. This value will be read from
# the master squid configuration file if not specified here.
#
#http_port 3128
#
# max_history_size: How many fetched URLs to remember. This allows the
# prefetch program to avoid doing prefetch on pages it has already done it
# for, thus reducing network bandwidth and system load. This is really the
# only part of the program that consumes memory, so a balance must be struck
# between those two things.
#
#max_history_size 5000
#
# max_history_age: How old a prefetch must be before it will be done again (in
# seconds). For those items that have not been expired from the history log
# due to size limitations are checked against their age. If the last prefetch
# operation was done longer ago than this amount of time, then another is
# done.
#
#max_history_age 86400
#
# prefetch_regex: This (perl) pattern is matched against all URLs to limit
# what pages get acted upon. This provides a first pruning of what links need
# to be acted upon. It's worth using this pattern to indicate only those
# pages which can contain text (HTML or otherwise) since other types will be
# ignored as soon as the header comes back from the server. Extensions that
# are used for dynamically generated pages are best avoided since they are
# not usually cacheable.
#
#prefetch_regex http://.*(\.(html?|te?xt)|/[^\.]*)
#
# prefetch_options: Allow fetching of URLs with options (anything after "?").
# For the most part, pages that take options are dynamic content and
# prefetching them accomplishes little. Use "1" for "yes", "0" for "no".
#
#prefetch_options 0
#
# prefetch_fragments: Allow fetching of URLs with fragment specifications
# (anything after "#"). Links to pages with fragments are often word
# definitions and the like. Fetching a single page may cache many different
# links because it will fetch all the fragments on that page. Use "1" for
# "yes", "0" for "no".
#
#prefetch_fragments 1
#
# prefetch_maxsize: This is the maximum size of page that will be prefetched.
# It should be large enough to contain most text pages but not so large as to
# waste bandwidth fetching huge pages on the off chance a user will go there.
# The size is measured in bytes.
#
#prefetch_maxsize 65536
#
# prefetch_cross: Allow prefetching of pages on a different host than the one
# doing the linking. If this option is set ("1", then links to other hosts
# will also be prefetched. Otherwise ("0"), only pages on the same host as
# the page currently being viewed will be fetched.
#
#prefetch_cross 0
|