Welcome! Log In Create A New Profile

Advanced

Re: Proxy Cache-Setting

Robert Paprocki
December 06, 2014 06:54PM
Hi,

You probably want to look into the proxy_cache_bypass and proxy_no_cache
directives:

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_bypass

http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_no_cache

On 12/06/2014 03:49 PM, MasterTH wrote:
> Hi,
>
> i got a special proxy cache configuration to do and i really don't know how
> to solve it.
>
> the situation is the following. We use an upstream proxy to be high
> availible with our project. The project is a api which uses get und
> post-data to calculate something.
>
> the caching is working nice and smoothly, but now we'd like to cut out some
> special calls from the cache.
>
> i'll try to explain which calls we'd like to cache and which not.
>
> lets say the base url is http://api.domain.tld/calculate
> everthing that is behind that base will be send to the api and put into the
> calculation process.
>
> 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
>
> i tested really much, with different location settings, but everytime i add
> the location
> /calculation/ the POST Requests gets a 404 and nothing works anymore.
>
> If somebody has a oppinion how i can solve this problem, it would be really
> nice to hear.
>
>
> thanks a lot
> masterth
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255357,255357#msg-255357
>
> _______________________________________________
> 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

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: 158
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