Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache_bypass inheritance bug?

March 23, 2023 12:30PM
Okay, I did a little more digging into the issue and I think I've narrowed down the problem a little more.

FYI I'm running nginx 1.23.3

So my location matchs are fine and working as expected. I even have an "if" statement within said location and it works as expected...

if ($invalid_referer) { return 403; }

But then I started to experiment with add_header within the location block, adding a custom tag just to see what was going on and where responses were coming from.

So in another location for image serving, when nginx serves the image directly via try_files, then the temporary header is included. However if it gets passed to the @proxy then the header (within the location block) is missing. However, higher level add_header tags are present.

This seems to fall in line with my proxy cache settings within the location block not being processed, but instead using the higher level ones.

Is this by design, or a bug, or am I missing something?
Subject Author Posted

proxy_cache_bypass inheritance bug?

Jas0n March 21, 2023 01:15PM

Re: proxy_cache_bypass inheritance bug?

Jas0n March 23, 2023 12:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready