Welcome! Log In Create A New Profile

Advanced

Re: selective caching

Maxim Dounin
July 24, 2009 12:38PM
Hello!

On Fri, Jul 24, 2009 at 12:29:16PM -0400, vburshteyn wrote:

> so i am using cache to great effect to cache and speed the site.
>
> I am just curious is there a way to do selective caching? it is imperitive that i keep one stupid URL from caching. Is that possible?

Just configure different locations for urls you want to be cached
and urls you don't want to. E.g.

location / {
proxy_pass http://...

# cache everything here
proxy_cache blah;
...
}

location /do-not-cache-here {
proxy_pass http://...
}

See http://wiki.nginx.org/NginxHttpCoreModule#location for details
about locations.

Maxim Dounin
Subject Author Posted

selective caching

vburshteyn July 24, 2009 12:29PM

Re: selective caching

Maxim Dounin July 24, 2009 12:38PM

Re: selective caching

J July 24, 2009 06:46PM

Re: selective caching

Maxim Dounin July 24, 2009 07:09PM

Re: selective caching

J July 24, 2009 07:34PM

Re: selective caching

anomalizer July 25, 2009 03:23AM

Re: selective caching

Igor Sysoev July 25, 2009 03:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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