############################################################################### # # 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. # ############################################################################### # # 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://.*(\.(s?html?|te?xt|xml|rss)|/[^\.]*) # # 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