Re: [squid-users] Enforcing Refresh patterns

2005-01-25 Thread Alexander Shopov
What version of squid are you using?
Native Squid 2.5.STABLE7 under Windows XP
C:\squid\sbin>squid -v
Squid Cache: Version 2.5.STABLE7-NT
configure options: --enable-win32-service --enable-underscores 
--enable-storeio='ufs awin32 null' --enable-removal-policies='heap lru' 
--enable-snmp --enable-htcp --disable-wccp --enable-useragent-log 
--enable-referer-log --enable-auth='basic ntlm digest' 
--enable-basic-auth-helpers='LDAP ncsa_auth win32_locallogon' 
--enable-ntlm-auth-helpers=NTLMSSP-WIN32 
--enable-external-acl-helpers='win32_group ldap_group' --prefix=c:/squid
Compiled as Windows System Service.


Can you post the full section out of your access.log, of a request where 
this happens, with
   log_mime_hdrs on

(Just post 1 request logged)

Here is a simple web page request, for the image - just search for 
"edit.gif".

1106658618.290   1015 127.0.0.1 TCP_MISS/200 7944 GET 
http://10.10.10.100:7778/pob/servlet/Controler? - DIRECT/10.10.10.100 
text/html [Accept: */*\r\nAccept-Language: bg\r\nPragma: 
no-cache\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 
5.1; SV1; .NET CLR 1.1.4322)\r\nHost: 
10.10.10.100:7778\r\nProxy-Connection: Keep-Alive\r\nCookie: 
JSESSIONID=0524d2c335214438bc8e9353b54b419b.rAzOpRbCmhCNa30Lcybtah0Iah0Iah0Iah0K-xnyb6aL-AnAc3uRaxaPn38I-huKa30xml1KqR9Q-BnDr6XNo64IqR1zmRfMrkOIp6XxmkKxaxiSaNqTawbKpQ8xq6Xw8QfznA5Pp7ftolbGmkTy\r\n] 
[HTTP/1.1 200 OK\r\nDate: Tue, 25 Jan 2005 13:10:17 
GMT\r\nCache-Control: private\r\nServer: Oracle9iAS/9.0.2 Oracle HTTP 
Server Oracle9iAS-Web-Cache/9.0.2.0.0 (N)\r\nContent-Length: 
7428\r\nContent-Type: text/html; charset=windows-1251\r\nSet-Cookie: 
JSESSIONID=0524d2c335214438bc8e9353b54b419b.rAzOpRbCmhCNa30Lcybtah0Iah0Iah0Iah0K-xnyb6aL-AnAc3uRaxaPn38I-huKa30xml1KqR9Q-BnDr6XNo64IqR1zmRfMrkOIp6XxmkKxaxiSaNqTawbKpQ8xq6Xw8QfznA5Pp7ftolbGmkTy; 
Path=/\r\nConnection: Close\r\n\r]

1106658618.322 47 127.0.0.1 TCP_MISS/304 302 GET 
http://10.10.10.100:7778/pob/styles/styles2.css - DIRECT/10.10.10.100 
application/octet-stream [Accept: */*\r\nReferer: 
http://10.10.10.100:7778/pob/servlet/Controler?control=NewForm&DOC_DEF_ID=13\r\nAccept-Language: 
bg\r\nPragma: no-cache\r\nIf-Modified-Since: Wed, 19 Jan 2005 08:01:14 
GMT; length=6740\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\nHost: 
10.10.10.100:7778\r\nProxy-Connection: Keep-Alive\r\nCookie: 
JSESSIONID=0524d2c335214438bc8e9353b54b419b.rAzOpRbCmhCNa30Lcybtah0Iah0Iah0Iah0K-xnyb6aL-AnAc3uRaxaPn38I-huKa30xml1KqR9Q-BnDr6XNo64IqR1zmRfMrkOIp6XxmkKxaxiSaNqTawbKpQ8xq6Xw8QfznA5Pp7ftolbGmkTy\r\n] 
[HTTP/1.1 304 Not Modified\r\nDate: Tue, 25 Jan 2005 13:10:18 
GMT\r\nCache-Control: private\r\nServer: Oracle9iAS/9.0.2 Oracle HTTP 
Server Oracle9iAS-Web-Cache/9.0.2.0.0 (N)\r\nContent-Length: 
0\r\nContent-Type: application/octet-stream\r\nConnection: Close\r\n\r]

1106658618.322 47 127.0.0.1 TCP_MISS/304 302 GET 
http://10.10.10.100:7778/pob/styles/calendar.css - DIRECT/10.10.10.100 
application/octet-stream [Accept: */*\r\nReferer: 
http://10.10.10.100:7778/pob/servlet/Controler?control=NewForm&DOC_DEF_ID=13\r\nAccept-Language: 
bg\r\nPragma: no-cache\r\nIf-Modified-Since: Wed, 19 Jan 2005 08:01:14 
GMT; length=4765\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\nHost: 
10.10.10.100:7778\r\nProxy-Connection: Keep-Alive\r\nCookie: 
JSESSIONID=0524d2c335214438bc8e9353b54b419b.rAzOpRbCmhCNa30Lcybtah0Iah0Iah0Iah0K-xnyb6aL-AnAc3uRaxaPn38I-huKa30xml1KqR9Q-BnDr6XNo64IqR1zmRfMrkOIp6XxmkKxaxiSaNqTawbKpQ8xq6Xw8QfznA5Pp7ftolbGmkTy\r\n] 
[HTTP/1.1 304 Not Modified\r\nDate: Tue, 25 Jan 2005 13:10:18 
GMT\r\nCache-Control: private\r\nServer: Oracle9iAS/9.0.2 Oracle HTTP 
Server Oracle9iAS-Web-Cache/9.0.2.0.0 (N)\r\nContent-Length: 
0\r\nContent-Type: application/octet-stream\r\nConnection: Close\r\n\r]

1106658618.322 32 127.0.0.1 TCP_MISS/304 216 GET 
http://10.10.10.100:7778/pob/javascript/autolist.js - 
DIRECT/10.10.10.100 - [Accept: */*\r\nReferer: 
http://10.10.10.100:7778/pob/servlet/Controler?control=NewForm&DOC_DEF_ID=13\r\nAccept-Language: 
bg\r\nPragma: no-cache\r\nIf-Modified-Since: Wed, 19 Jan 2005 08:01:14 
GMT; length=1922\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\nHost: 
10.10.10.100:7778\r\nProxy-Connection: Keep-Alive\r\nCookie: 
JSESSIONID=0524d2c335214438bc8e9353b54b419b.rAzOpRbCmhCNa30Lcybtah0Iah0Iah0Iah0K-xnyb6aL-AnAc3uRaxaPn38I-huKa30xml1KqR9Q-BnDr6XNo64IqR1zmRfMrkOIp6XxmkKxaxiSaNqTawbKpQ8xq6Xw8QfznA5Pp7ftolbGmkTy\r\n] 
[HTTP/1.1 304 Not Modified\r\nDate: Tue, 25 Jan 2005 13:10:18 
GMT\r\nAllow: GET, HEAD\r\nServer: 
Oracle9iAS-Web-Cache/9.0.2.0.0\r\nContent-Length: 0\r\nKeep-Alive: 
timeout=0, max=999\r\n\r]

1106658618.353 31 127.0.0.1 TCP_MISS/304 216 GET 
http://10.10.10.100:7778/pob/javascript/functions.js - 
DIRECT/10.10.10.100 - [Accept: */*\r\nReferer: 
http://10.10.10.100:7778/pob/servlet/Controler?control=NewForm&DOC_DEF_

Re: [squid-users] Enforcing Refresh patterns

2005-01-24 Thread Reuben Farrelly
Hi,
At 03:42 a.m. 25/01/2005, Alexander Shopov wrote:
Hi guys,
After reading the FAQ, searching on google, reading viSofts manual, and 
the Squid Documentation project, extensive experimenting and then 
wiretrapping with Etereal, I still cannot get the result I want with Squid.
I want to *force* a particular refresh pattern on some objects 
(*.gif,*.js) from some servers.

I want all gifs from some servers to be refreshed no earlier than 12 
minutes after they went into the cache *regardless* of the settings of the 
web server and the commands of the client:

I tried with the following setting:
refresh_pattern ^ftp:   144020% 10080
refresh_pattern ^gopher:14400%  1440
refresh_pattern -i .*\.gif$ 12  100%12 override-expire 
override-lastmod reload-into-ims ignore-reload
refresh_pattern .   0   20% 4320

But then whenever the user client generates a request for a gif object, 
squid first checks whether the object is stale by generating a request to 
the server. I do not it to do so for at least 12 minutes, I want squid to 
return the object immediately.

Can anyone give me advice?
What version of squid are you using?
Can you post the full section out of your access.log, of a request where 
this happens, with
   log_mime_hdrs on

(Just post 1 request logged)
Reuben


[squid-users] Enforcing Refresh patterns

2005-01-24 Thread Alexander Shopov
Hi guys,
After reading the FAQ, searching on google, reading viSofts manual, and 
the Squid Documentation project, extensive experimenting and then 
wiretrapping with Etereal, I still cannot get the result I want with Squid.
I want to *force* a particular refresh pattern on some objects 
(*.gif,*.js) from some servers.

I want all gifs from some servers to be refreshed no earlier than 12 
minutes after they went into the cache *regardless* of the settings of 
the web server and the commands of the client:

I tried with the following setting:
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern -i .*\.gif$	12	100%	12 override-expire override-lastmod 
reload-into-ims ignore-reload
refresh_pattern .		0	20%	4320

But then whenever the user client generates a request for a gif object, 
squid first checks whether the object is stale by generating a request 
to the server. I do not it to do so for at least 12 minutes, I want 
squid to return the object immediately.

Can anyone give me advice?
Best regards:
al_shopov