[squid-users] squid 4.0.17 accept-encoding.. sending gzip?!
Eliezer Croitoru
eliezer at ngtech.co.il
Tue Dec 27 18:26:35 UTC 2016
And what shows in the access.log when you fetch this object?
The response headers are missing couple things.
Also you are using a heuristic refresh_pattern that should not work and it's
wrong to use such.
The first thing is to change the refresh pattern to something more connected
to reality rather then science fiction.
refresh_pattern -i
\.(jp[eg]{1,2}|pdf|gif|pn[pg]|bmp|tiff|ico|swf|css|js|ad|png)$ 1800 80% 7200
Try It and see if it changes something.
And a refence for the available options that can be used with enough details
to start to understand what you are doing:
http://www.squid-cache.org/Versions/v4/cfgman/refresh_pattern.html
In this specific case there is a cache server.. Oracle at the other side and
the logs are the only one which will give us a glimpse into what is going on
for real.
Eliezer
----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On
Behalf Of Heiler Bemerguy
Sent: Tuesday, December 27, 2016 7:31 PM
To: squid-users at lists.squid-cache.org
Subject: Re: [squid-users] squid 4.0.17 accept-encoding.. sending gzip?!
Hi,
refresh_pattern -i
\.(jp[eg]{1,2}|pdf|gif|pn[pg]|bmp|tiff|ico|swf|css|js|ad|png)$ 10080 80%
120960 ignore-no-store ignore-reload ignore-must-revalidate ignore-private
override-expire store-stale
But it shouldn't change the length of the object, the encoding type of the
object, the "Server" header of the object..... or am I wrong?
--
Best Regards,
Heiler Bemerguy
Network Manager - CINBESA
55 91 98151-4894/3184-1751
Em 27/12/2016 14:26, Eliezer Croitoru escreveu:
May I ask how did you manager to tell squid to cache a no-cache object?
>From the dump it states:
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Which means it should not be cached….
Eliezer
----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: mailto:eliezer at ngtech.co.il
From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On
Behalf Of Heiler Bemerguy
Sent: Tuesday, December 27, 2016 4:03 PM
To: mailto:squid-users at squid-cache.org
Subject: Re: [squid-users] squid 4.0.17 accept-encoding.. sending gzip?!
The server doesn't define any "content-encoding". This is the original
server reply, tcpdumped:
HTTP/1.1 200 OK
Set-Cookie: ACE-STICKY=R1291873686; path=/; expires=Mon, 26-Dec-2016
23:51:26 GMT
Date: Mon, 26 Dec 2016 19:36:06 GMT
Accept-Ranges: bytes
Content-Length: 152264
Content-Type: text/css; charset=UTF-8
X-Powered-By: Servlet/3.0 JSP/2.2
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Content-Language: en
Set-Cookie:
JSESSIONID=DCLCYhxGPHvpfnPNsPv51cGkS55GPqB4b3xJsybLgLJpyqPZZhNW!-162452808;
path=/; HttpOnly
--
Best Regards,
Heiler Bemerguy
Network Manager - CINBESA
55 91 98151-4894/3184-1751
Em 26/12/2016 21:07, Alex Rousskov escreveu:
On December 26, 2016 10:11:55 AM Heiler Bemerguy wrote:
*Accept-Encoding: none*
*Content-Encoding: gzip*
These are end-to-end headers. Squid does not modify or add them (unless you
tell it to do that).
The origin server does not honor the bogus "none" content coding requested
by the client.
HTH,
Alex.
More information about the squid-users
mailing list