Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-27 Thread Eliezer Croitoru
Subject: Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale On 3/24/21 3:34 PM, Miroslaw Malinowski wrote: > I thought about upper service but as is not required at the mom

Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-26 Thread Alex Rousskov
On 3/24/21 3:34 PM, Miroslaw Malinowski wrote: > I thought about upper service but as is not required at the moment, > introducing extra hop just to remove the header looks a bit like a > hammer approach. I'll look into how easily I can amend the code as the > other option is to introduce a proxy

Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-24 Thread Miroslaw Malinowski
I thought about upper service but as is not required at the moment, introducing extra hop just to remove the header looks a bit like a hammer approach. I'll look into how easily I can amend the code as the other option is to introduce a proxy like a feature to the application, so either way, it is

Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-24 Thread Alex Rousskov
On 3/24/21 2:49 PM, Miroslaw Malinowski wrote: > looking at the code and reading carefully your response, you're saying > there is no way you can do it with squid. With Squid, your options include: 1. Squid source code changes. Should not be too difficult and, IMO, a high-quality implementation

Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-24 Thread Miroslaw Malinowski
I've probably replied to quickly thinking there is a way to do it. So looking at the code and reading carefully your response, you're saying there is no way you can do it with squid. Mirek On Wed, Mar 24, 2021 at 6:28 PM Miroslaw Malinowski < mr.miroslaw.malinow...@gmail.com> wrote: > Hi, > >

Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-24 Thread Miroslaw Malinowski
Hi, You've right yes it's revalidating as API server I'm requesting data is setting Cache-Control: no-cache. My question is how I can force squid to cache and not validate as I know it's safe to do so. As I've explained earlier we are making the same request and receiving the same response from

Re: [squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-24 Thread Alex Rousskov
On 3/24/21 12:48 PM, Miroslaw Malinowski wrote: > Probably, me missing on something silly or it can't be done but I don't > know why but squid won't return the cached version even when I turn all > override options ON in refresh_pattern. AFAICT, no configuration options that can disable

[squid-users] squid won't return cached even with refresh_pattern extra options override-lastmod override-expire ignore-reload ignore-no-store ignore-private store-stale

2021-03-24 Thread Miroslaw Malinowski
Hi, Probably, me missing on something silly or it can't be done but I don't know why but squid won't return the cached version even when I turn all override options ON in refresh_pattern. It's an API call where we call many of the same requests and by knowing it we would like to stop those calls