Re: how can I cache upstream by mime type in nginx

2022-11-01 Thread Francis Daly
On Tue, Nov 01, 2022 at 10:07:37PM +, Francis Daly wrote: > On Wed, Nov 02, 2022 at 12:29:49AM +0800, Drweb Mike wrote: Hi there, > > My front end is nginx using reverse proxy work with my backend, I was > > trying to cache images files only, but it seems doesn't work at all, the > > *$no_cac

Re: how can I cache upstream by mime type in nginx

2022-11-01 Thread Francis Daly
On Wed, Nov 02, 2022 at 12:29:49AM +0800, Drweb Mike wrote: Hi there, > My front end is nginx using reverse proxy work with my backend, I was > trying to cache images files only, but it seems doesn't work at all, the > *$no_cache* always output default value "proxy", which should be "0" when I >

how can I cache upstream by mime type in nginx

2022-11-01 Thread Drweb Mike
hi there My front end is nginx using reverse proxy work with my backend, I was trying to cache images files only, but it seems doesn't work at all, the *$no_cache* always output default value "proxy", which should be "0" when I visit image files here it is my config map $upstream_http_content_ty