Welcome! Log In Create A New Profile

Advanced

Re: cache all endpoints but one: nginx settings

October 10, 2016 03:14PM
thank you Maxim,
I ll try with your suggestions.
So basically, if I have a "production" server and a proxy server in front of it, I just need cache on the proxy server (http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_valid) , and not cache responses on the production server?

I have this setting on production server:

# Set Cache for my Json api
location ~* \.(?:json)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}

But if I am using a proxy server it is useless, correct?
Subject Author Posted

cache all endpoints but one: nginx settings

Luigi Assom October 04, 2016 11:18AM

Re: cache all endpoints but one: nginx settings

Maxim Dounin October 04, 2016 12:30PM

Re: cache all endpoints but one: nginx settings

gg4u October 10, 2016 03:14PM

Re: cache all endpoints but one: nginx settings

gg4u October 10, 2016 03:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready