Re: Nginx ignores proxy_no_cache

2025-01-31 Thread Clima Gabriel
> my personal preference is to keep disks mirrored Certainly, this is ideal, however Nginx is used by many businesses (cdn, content providers, etc) whose margins are often too low to justify hardware redundancy. And using cheap SSDs can have incredibly bad impact on performance, as we've encounter

Re: Nginx ignores proxy_no_cache

2025-01-31 Thread Maxim Dounin
Hello! On Thu, Jan 30, 2025 at 11:01:32AM +0200, Clima Gabriel wrote: > Hello Maxim, > Hope this helps. > We encounter disk failures fairly often and what the kernel will do most of > the time is re-mount the disk as read-only. > What I did was add this check which checks if the disk is healthy b

Re: Nginx ignores proxy_no_cache

2025-01-30 Thread Clima Gabriel
Hello Maxim, Hope this helps. We encounter disk failures fairly often and what the kernel will do most of the time is re-mount the disk as read-only. What I did was add this check which checks if the disk is healthy before hand and executes the proxy_no_cache path if it is. It doesn't cover all the

Re: Nginx ignores proxy_no_cache

2024-04-07 Thread Maxim Dounin
Hello! On Sun, Apr 07, 2024 at 01:36:21PM +0200, Kirill A. Korinsky wrote: > Greetings, > > Let assume that I would like behavior on LB from the backend and force it to > cache only resposnes that have a X-No-Cache header with value NO. > > Nginx should cache a response with any code, if it has

Nginx ignores proxy_no_cache

2024-04-07 Thread Kirill A . Korinsky
Greetings, Let assume that I would like behavior on LB from the backend and force it to cache only resposnes that have a X-No-Cache header with value NO. Nginx should cache a response with any code, if it has such headers. This works well until the backend is unavailable and nginx returns a hard