Caching on nginx¶
Caching config (https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachingexample/)
This part goes into nginx.conf:
{% code overflow="wrap" %}
This part goes in the location of the proxy-confs to cache:
proxy_buffering on;
proxy_cache STATIC;
proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;