Re: nginx caching proxy

2018-10-25 Thread Gryzli Bugbear
Except the case when your site is returning "Vary: Accept-Encoding" for example and the 2 clients are using different Accept-Encoding headers  (that's also true for whatever the Vary header is)  :) On 10/25/18 4:20 PM, Roman Arutyunyan wrote: On Thu, Oct 25, 2018 at 07:21:35AM -0400, vizl

Re: nginx caching proxy

2018-10-25 Thread Roman Arutyunyan
On Thu, Oct 25, 2018 at 07:21:35AM -0400, vizl wrote: > And how about result cache file ? > Will it be only 1 object in cache when 2 client GET 1 file SIMULTANEOUSLY or > 2 different objects in Nginx proxy_cache_path ? Only one response can be cached for a single key. Once a new response is

Re: nginx caching proxy

2018-10-25 Thread vizl
And how about result cache file ? Will it be only 1 object in cache when 2 client GET 1 file SIMULTANEOUSLY or 2 different objects in Nginx proxy_cache_path ? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281621,281686#msg-281686 ___ nginx

Re: nginx caching proxy

2018-10-17 Thread Roman Arutyunyan
Hello, On Wed, Oct 17, 2018 at 05:13:15AM -0400, drookie wrote: > Hello, > > I did't find the answer in documentation, but am I right, assuming from my > observation, that when the proxy_cache is enabled for a location, and the > client requests the file that isn't in the cache yet, nginx

nginx caching proxy

2018-10-17 Thread drookie
Hello, I did't find the answer in documentation, but am I right, assuming from my observation, that when the proxy_cache is enabled for a location, and the client requests the file that isn't in the cache yet, nginx starts transmitting this file only after it's fully received from the upstream ?

Re: Nginx caching proxy dns name even when using variables

2018-10-01 Thread Rob Fulton
Hi, On 27/09/2018 15:53, Maxim Dounin wrote: Hello! On Thu, Sep 27, 2018 at 03:27:03PM +0100, Rob Fulton wrote: I’ve done some further testing on this today and discovered that the configuration works correctly when the proxy_pass url is accessed via http, I can see dns queries for the

Re: Nginx caching proxy dns name even when using variables

2018-09-27 Thread Maxim Dounin
Hello! On Thu, Sep 27, 2018 at 03:27:03PM +0100, Rob Fulton wrote: > I’ve done some further testing on this today and discovered that > the configuration works correctly when the proxy_pass url is > accessed via http, I can see dns queries for the proxy_server > url every minute as per the

Re: Nginx caching proxy dns name even when using variables

2018-09-27 Thread Rob Fulton
Hi, I’ve done some further testing on this today and discovered that the configuration works correctly when the proxy_pass url is accessed via http, I can see dns queries for the proxy_server url every minute as per the ttl. The moment I change the url to https, this stops. Is this a known

Nginx caching proxy dns name even when using variables

2018-09-26 Thread Rob Fulton
Hi, I'm using nginx to proxy to a host with a rapidly changing dns entry but I can't seem to get the proxy command the re-query dns using the vairable method suggested, the following is a excerpt from my config : server {     listen 443 ssl;     resolver 127.0.0.1 valid=20s;     set