Welcome! Log In Create A New Profile

Advanced

Re: How to delete cache based on expires headers?

António P. P. Almeida
January 02, 2014 02:20PM
Yes.

Nginx will obey the Cache-Control/Expire headers. It won't delete, but it
will refresh the files so that the served content is fresh.
So it is as if the files were deleted. AFAIK deletion happens more often
when the file is not accessed for given time specified through the inactive
parameter of the proxy_cache_path/fastcgi_cache_path directives.

----appa



On Mon, Dec 30, 2013 at 5:27 AM, Indo Php <iptablez@yahoo.com> wrote:

> Hi
>
> Is that means that nginx will put the files based on the upstream expire
> headers? After that nginx will delete the cache files?
>
>
>
>
> On Tuesday, December 24, 2013 10:28 PM, António P. P. Almeida <
> appa@perusio.net> wrote:
> Why you want to do this? nginx can manage expiration/cache-control
> headers all by itself.
>
> As soon as the defined max-age is set it returns a upstream status of
> EXPIRED until it fetches a fresh
> page from upstream.
>
> Deleting won't buy you anything in terms of content freshness.
>
>
>
>
>
> ----appa
>
>
>
> On Tue, Dec 24, 2013 at 3:57 AM, Indo Php <iptablez@yahoo.com> wrote:
>
> Hello..
>
> Can somebody help me on this?
>
> Thank you before
>
>
> On Thursday, December 19, 2013 11:21 AM, Indo Php <iptablez@yahoo.com>
> wrote:
> Hi
>
> I'm using proxy_cache to mirror my files with the configuration below
>
> proxy_cache_path /var/cache/nginx/image levels=1:2 keys_zone=one:10m
> inactive=7d max_size=100g;
>
> Our backend server has the expires header set to 600secs
>
> Is that posibble for us to also delete the cache files located at /var/cache/nginx/image
> depends on the backend expire header?
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to delete cache based on expires headers?

Indo Php December 18, 2013 11:22PM

Re: How to delete cache based on expires headers?

Indo Php December 23, 2013 10:00PM

Re: How to delete cache based on expires headers?

magicdrums December 24, 2013 10:22AM

Re: How to delete cache based on expires headers?

António P. P. Almeida December 24, 2013 10:30AM

Re: How to delete cache based on expires headers?

Indo Php December 29, 2013 11:30PM

Re: How to delete cache based on expires headers?

António P. P. Almeida January 02, 2014 02:20PM

Re: How to delete cache based on expires headers?

Indo Php January 05, 2014 11:20PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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