Re: cache all endpoints but one: nginx settings

2016-10-10 Thread gg4u
Update about FLASK: as you indicated in: I am using errorhandler decorator, but returning a template in the handler function: @application.errorhandler(404) def error_404(e): application.logger.error('Page Not Found: %s', (request.path)) #return render_template('404.html'), 404

Re: cache all endpoints but one: nginx settings

2016-10-10 Thread gg4u
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?