Maxim Dounin
March 11, 2011 07:10AM

On Fri, Mar 11, 2011 at 09:58:27AM +0100, Hajo Locke wrote:

> nginx 0.8.49
> Hello List,
> have a problem with cached images which dont want to expire from cache.
> i use nginx as proxy with 2 ApacheBackends. On backend an image was
> updated by ftp but nginx still serves cached image for hours. i had
> to delete it manually...
> in nginx.conf i use:
> proxy_cache_min_uses 1;
> proxy_cache_valid 200 5m;
> proxy_cache_path /usr/local/nginx/proxy_temp/ levels=1:2
> keys_zone=ramdisk:1000m inactive=10m max_size=2000M;
> I need some help, in which direction i should look for problems?

Check headers (Expires, Cache-Control) returned by backends. They
take precedence over proxy_cache_valid specified (unless ignored
with proxy_cache_ignore_headers).

Maxim Dounin

nginx mailing list
Subject Author Posted

cache problem - not expiring

HajoLOcke March 11, 2011 04:04AM

Re: cache problem - not expiring

Maxim Dounin March 11, 2011 07:10AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 115
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