Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread George
Thanks for that video link :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278481,278585#msg-278585 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread Ruslan Ermilov
On Wed, Feb 14, 2018 at 06:19:01PM -0500, George wrote: > thanks Ruslan for the update appreciate all your work and looking forward to > playing with HTTP/2 Push finally ! :) Start off right today: https://www.youtube.com/watch?v=wR1gF5Lhcq0 ___ nginx ma

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread George
thanks Ruslan for the update appreciate all your work and looking forward to playing with HTTP/2 Push finally ! :) Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278481,278582#msg-278582 ___ nginx mailing list nginx@nginx.org http://mailman.

Re: Response Header IF statement problem

2018-02-14 Thread Peter Booth
I think that part of the power and challenge of using nginx’s caching is that there are many different ways of achieving the same or similar results, but some of the approaches will be more awkward than others. I think that it might help if you could express what the issue is that you are try

Re: no access_log logging for UDP streams

2018-02-14 Thread David Kewley
On Wed, Feb 14, 2018 at 5:59 AM, Roman Arutyunyan wrote: > Hi David, > > On Tue, Feb 13, 2018 at 01:01:03PM -0800, David Kewley wrote: > > I'm using nginx 1.12.1 to proxy TCP and UDP streams. I have in my stream > {} > > stanza: > > > > log_format test '$time_local'; > > > > access_log /va

Re: Response Header IF statement problem

2018-02-14 Thread webopsx
Hi, Yes NGINX can inspect the header, See the following full example. It will check for the match of "true" case-insensitive. I am simulating your backend on port 81. Does this make sense? map $upstream_http_x_secured_page $nocache { ~*true "1"; default

Re: Response Header IF statement problem

2018-02-14 Thread Friscia, Michael
Maybe that’s the problem, I want to disable cache if the response header is true but not do anything if it is false. I can change my logic in creating this header to only have it on pages where cache should be disabled if it is not possible to use an IF statement around it. I will post my config

Re: Response Header IF statement problem

2018-02-14 Thread webopsx
Hi, The map is processed on each request and should be very consistent. I thought you wanted to disable cache on the existence of a response header, not a request header. Otherwise I think we need more information to understand, such as how are you testing? Perhaps paste your full configuration

Re: Response Header IF statement problem

2018-02-14 Thread Friscia, Michael
Ok, so I did this and it worked and then it stopped working, then it worked again and then stopped working. I literally used the code below, the map appears right above my server {} block. When it worked I was passing a header with the $nocache value set and it was consistently returning the co

Re: Nginx 1.13.9 HTTP/2 Server Push - non-compressed assets ?

2018-02-14 Thread Ruslan Ermilov
On Sat, Feb 10, 2018 at 01:21:16PM -0500, George wrote: > Hi compiled Nginx 1.13.9 from master branch to try out HTTP/2 Server Push > but noticed the pushed assets loose their gzip compression and are served as > non-compressed assets ? Is that as intended ? I posted my findings at > https://commun

Re: Response Header IF statement problem

2018-02-14 Thread Friscia, Michael
Ok, I think this sends me into the correct direction. Thanks for posting the links and explaining the _bypass, I was setting both _bypass and _no_cache because I wasn’t sure. ___ Michael Friscia Office of Communications Yale School of Medicine (203) 737-79

Re: Response Header IF statement problem

2018-02-14 Thread webopsx
You can use map for this... - http://nginx.org/en/docs/http/ngx_http_map_module.html#map map $upstream_http_x_secured_page $nocache { "search string" "1" default ""; } location /foo { ... proxy_no_cache $nocache; } Posted at Nginx Forum: https:/

Re: Response Header IF statement problem

2018-02-14 Thread webopsx
Hi, If I understand correctly you actually don't want to cache specific responses (not bypass). The proxy_cache_bypass is only for if the response has already been cached and defines the behavior in which NGINX should serve the cached version to a client. Therefore if I understand correctly, you

Re: Response Header IF statement problem

2018-02-14 Thread Friscia, Michael
Thank you Roman, but this raises a different question, if I want to base this on the value and not the existence, is that still possible? ___ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile ht

Re: Response Header IF statement problem

2018-02-14 Thread Roman Arutyunyan
Hi Michael, On Wed, Feb 14, 2018 at 02:09:57PM +, Friscia, Michael wrote: > I’m at a loss on this. I am working on a cache problem where some pages need > to be bypassed and others will be cached. So the web server is adding a > response header (X-Secured-Page). I’ve tried multiple combinati

Response Header IF statement problem

2018-02-14 Thread Friscia, Michael
I’m at a loss on this. I am working on a cache problem where some pages need to be bypassed and others will be cached. So the web server is adding a response header (X-Secured-Page). I’ve tried multiple combinations of $http_x_secured_page and $sent_http_x_secured_page and even though I see the

Re: no access_log logging for UDP streams

2018-02-14 Thread Roman Arutyunyan
Hi David, On Tue, Feb 13, 2018 at 01:01:03PM -0800, David Kewley wrote: > I'm using nginx 1.12.1 to proxy TCP and UDP streams. I have in my stream {} > stanza: > > log_format test '$time_local'; > > access_log /var/log/nginx/stream-access.log test buffer=64k flush=1s; > error_log /