Re: [squid-users] caching and changing content

2019-09-12 Thread Alex Rousskov
On 9/12/19 12:22 PM, fansari wrote: > '--enable-delay-pools' OK, so we should be careful with not trusting TCP_MISS too much. > http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377780/cache.log Squid shows these headers for the second response (near 15:40:03.814): > X-Cache: MISS

Re: [squid-users] caching and changing content

2019-09-12 Thread fansari
squid -v gives this: Squid Cache: Version 3.5.23 Service Name: squid Raspbian linux configure options: '--build=arm-linux-gnueabihf' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var'

Re: [squid-users] caching and changing content

2019-09-12 Thread Alex Rousskov
On 9/12/19 11:02 AM, fansari wrote: > This is the first behaviour I don't want like this: In the future, please post all access.log records from the test case up to and including the first one you do not like (not just the first one you do not like). In caching, _history_ matters. >

Re: [squid-users] caching and changing content

2019-09-12 Thread fansari
This is the first behaviour I don't want like this: 1568300283.479 3896 xxx.xxx.0.239 TCP_MISS/200 6724533 GET https://xxx/1.mp4 - HIER_DIRECT/xxx.xxx.24.241 video/mp4 The content of the mp4 file has not changed. Nevertheless after clearing the browser cache the content produces a MISS instead

Re: [squid-users] caching and changing content

2019-09-12 Thread Alex Rousskov
On 9/12/19 10:21 AM, fansari wrote: > Yes - I can allow squid to ask the origin server whether the content is > still the same. Probably my problem is that I don't know how to do that. Most likely, Squid will do that automatically. You have not answered my other questions so it is still unclear

Re: [squid-users] caching and changing content

2019-09-12 Thread fansari
In case a client has already downloaded the content and I request the content again without deleting the local cache (this would be the scenario "same client") in this case I see a 304 HEAD request which is sent out to the server (no new download from the server). Probably this works due to the

Re: [squid-users] caching and changing content

2019-09-12 Thread Alex Rousskov
On 9/12/19 4:25 AM, fansari wrote: > In my scenrio (squid 3.5.23) I have several clients which download content. > > Now I want to achieve two things: if one client has already downloaded the > content the second client requesting the same content should take it from > the squid cache. When

Re: [squid-users] caching and changing content

2019-09-12 Thread fansari
I will begin with you last question: the scenario I work on was not meant to work with proxy so far but now we want to integrate it because of traffic costs. Second point is that we cannot change anything on the application right now. This means I have to take everything as it is and to configure

Re: [squid-users] caching and changing content

2019-09-12 Thread Amos Jeffries
On 12/09/19 8:25 pm, fansari wrote: > In my scenrio (squid 3.5.23) I have several clients which download content. > > Now I want to achieve two things: if one client has already downloaded the > content the second client requesting the same content should take it from > the squid cache. > > But:

[squid-users] caching and changing content

2019-09-12 Thread fansari
In my scenrio (squid 3.5.23) I have several clients which download content. Now I want to achieve two things: if one client has already downloaded the content the second client requesting the same content should take it from the squid cache. But: when this content resource on the internet is