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
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
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.
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
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
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
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
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
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
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
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
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:/
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
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
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
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
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 /
17 matches
Mail list logo