# --- Pathfinder Smart Cache Optimization --- # 1. Stale-While-Revalidate (SWR) Global # Serve conteúdo antigo enquanto atualiza em background (Ultra rápido) proxy_cache_revalidate on; proxy_cache_background_update on; proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; # 2. Configuracoes de Cache-Control por Tipo de Arquivo add_header X-Cache-Status $upstream_cache_status;