diff --git a/nginx/sites-available/cloud.grupopralog.com.br.conf b/nginx/sites-available/cloud.grupopralog.com.br.conf index de6074b..8f1f197 100644 --- a/nginx/sites-available/cloud.grupopralog.com.br.conf +++ b/nginx/sites-available/cloud.grupopralog.com.br.conf @@ -154,13 +154,14 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_cache nextcloud_cache; - proxy_cache_valid 200 30d; + proxy_cache_valid 200 12h; proxy_cache_valid any 1m; - - more_set_headers 'Cache-Control: public, max-age=31536000, immutable'; + proxy_cache_revalidate on; + proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; + + more_set_headers 'Cache-Control: public, max-age=43200'; more_set_headers 'X-Proxy-Cache: $upstream_cache_status'; - expires 1y; proxy_hide_header "Cache-Control"; proxy_hide_header "Expires"; proxy_hide_header "Pragma";