Welcome! Log In Create A New Profile

Advanced

Re: Proxy Cache-Setting

Francis Daly
December 06, 2014 07:00PM
On Sat, Dec 06, 2014 at 06:49:44PM -0500, MasterTH wrote:

Hi there,

> What we'd like to cache is something like:
> http://api.domain.tld/calculate/%CUSTOMER_ID%/ (and everything what comes
> behind that url)
>
> And this calls we doesn't like to cache:
> http://api.domain.tld/calculate/?calc=23+45
> http://api.domain.tld/calculate?calc=23*45

It looks like a fairly straightforward three-location system, since you
have three url types that you want handled differently.

location = /calculate {
proxy_pass...;
}
location = /calculate/ {
proxy_pass...;
}
location /calculate/ {
proxy_pass...;
proxy_cache...;
}

I guess that if you already proxy_cache everything, set it to "off"
in the two exact locations.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy Cache-Setting

MasterTH December 06, 2014 06:49PM

Re: Proxy Cache-Setting

Robert Paprocki December 06, 2014 06:54PM

Re: Proxy Cache-Setting

Francis Daly December 06, 2014 07:00PM

Re: Proxy Cache-Setting

MasterTH December 08, 2014 06:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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