1STOREID_FILE_REWRITE(1)User Contributed Perl DocumentatioSnTOREID_FILE_REWRITE(1)
2
3
4
6 storeid_file_rewrite - File based Store-ID helper for Squid
7
9 storeid_file_rewrite filepath
10
12 This program acts as a store_id helper program, rewriting URLs passed
13 by Squid into storage-ids that can be used to achieve better caching
14 for websites that use different URLs for the same content.
15
16 It takes a text file with two tab separated columns. Column 1: Regular
17 expression to match against the URL Column 2: Rewrite rule to generate
18 a Store-ID Eg:
19 ^http:\/\/[^\.]+\.dl\.sourceforge\.net\/(.*) http://dl.sourceforge.net.squid.internal/$1
20
21 Rewrite rules are matched in the same order as they appear in the rules
22 file. So for best performance, sort it in order of frequency of
23 occurrence.
24
25 For more information please see
26 http://wiki.squid-cache.org/Features/StoreID
27
29 Copyright (C) 2013 Alan Mizrahi <alan@mizrahi.com.ve> Based on code
30 from Eliezer Croitoru <eliezer@ngtech.co.il>
31
32 This program is free software; you can redistribute it and/or modify it
33 under the terms of the GNU General Public License as published by the
34 Free Software Foundation; either version 2 of the License, or (at your
35 option) any later version.
36
37 This program is distributed in the hope that it will be useful, but
38 WITHOUT ANY WARRANTY; without even the implied warranty of
39 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
40 General Public License for more details.
41
42 You should have received a copy of the GNU General Public License along
43 with this program; if not, write to the Free Software Foundation, Inc.,
44 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
45
46
47
48perl v5.10.1 2017-03-22 STOREID_FILE_REWRITE(1)