Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Alex Rousskov
On 06/14/2018 01:32 PM, baretomas wrote: > On 14 June 2018 1:25 PM, Amos Jeffries wrote: >> 2. if you have enough control of the apps to get them connecting with >> TLS to the proxy and sending their requests there. Do that. You are not doing this if your Squid receives CONNECT requests. If

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread baretomas
Ok Im back. Still confused as ever. Look below for my story. On 14 June 2018 1:25 PM, Amos Jeffries wrote: > There are three ways to do this: > > 1. if you own the domain the apps are connecting to. Setup the proxy as > a normal TLS / HTTPS reverse-proxy. > 2. if you have enough control

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Tomas Finnøy
‐‐‐ Original Message ‐‐‐ On June 14, 2018 1:25 PM, Amos Jeffries wrote: > On 14/06/18 07:28, baretomas wrote: > > > Hello, > > > > I'm setting up a Squid proxy as a cache for a number (as many as possible) > > > > of identical JAVA applications to run their web calls through. The call

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Amos Jeffries
On 14/06/18 07:44, Antony Stone wrote: > On Wednesday 13 June 2018 at 21:28:27, baretomas wrote: > >> The calls from the application is done using ssl / https by telling java to >> use Squid as a proxy (-Dhttps.proxyHost and -Dhttp.proxyHost). > > Okay, but... > >> http_port 3128 ssl-bump genera

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Amos Jeffries
On 14/06/18 07:28, baretomas wrote: > Hello, > > I'm setting up a Squid proxy as a cache for a number (as many as possible) > of identical JAVA applications to run their web calls through. The calls are > ofc identical, and the response they get can safely be cached for 5-10 > seconds. > I do thi

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Tomas Finnøy
On June 14, 2018 10:25 AM, Antony Stone wrote: > On Thursday 14 June 2018 at 09:09:05, Tomas Finnøy wrote: > > > > Surely all this peeking and bumping is only needed if you're running > > > > > > Squid in interception mode, whereas you've said that you've configured > > > > > > your Java app

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Antony Stone
On Thursday 14 June 2018 at 09:09:05, Tomas Finnøy wrote: > > Surely all this peeking and bumping is only needed if you're running > > Squid in interception mode, whereas you've said that you've configured > > your Java application to explicitly use Squid as a proxy? > > I found some "how-to's" a

[squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-14 Thread Tomas Finnøy
> Surely all this peeking and bumping is only needed if you're running Squid in > interception mode, whereas you've said that you've configured your Java > application to explicitly use Squid as a proxy? I found some "how-to's" and posts that were explaining how to make a https cache proxy, and t

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-13 Thread Antony Stone
On Wednesday 13 June 2018 at 21:28:27, baretomas wrote: > The calls from the application is done using ssl / https by telling java to > use Squid as a proxy (-Dhttps.proxyHost and -Dhttp.proxyHost). Okay, but... > http_port 3128 ssl-bump generate-host-certificates=on > dynamic_cert_mem_cache_siz

Re: [squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-13 Thread Antony Stone
On Wednesday 13 June 2018 at 21:28:27, baretomas wrote: > Hello, > > I'm setting up a Squid proxy as a cache for a number (as many as possible) > of identical JAVA applications to run their web calls through. > The problem is that none of the calls get cached: All rows in the > access.log hava a

[squid-users] HTTPS cache for Java application - only getting TCP_MISS

2018-06-13 Thread baretomas
Hello, I'm setting up a Squid proxy as a cache for a number (as many as possible) of identical JAVA applications to run their web calls through. The calls are ofc identical, and the response they get can safely be cached for 5-10 seconds. I do this because most of the calls is directed at a singl