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
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?
Hello!
On Tue, Oct 04, 2016 at 05:17:38PM +0200, Luigi Assom wrote:
> I have a flask web app + uwsgi + nginx.
> I am using nginx both as server as well as proxy server.
>
> *How to make nginx to cache successful results from all API ending points
> but one?*
>
> I want to cache *only successful
Hello,
I have a flask web app + uwsgi + nginx.
I am using nginx both as server as well as proxy server.
*How to make nginx to cache successful results from all API ending points
but one?*
I want to cache *only successful responses *from all /api/endpoints except
/api/search.
1. I tried to:
--