Loading nginx/snippets/cache-definition.conf +7 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,13 @@ map $http_host $proxy_cache_bypass_value { atlas.* $proxy_cache_bypass_atlas_value; } # Evaluación de control de caché del lado del cliente según dominio map $http_host $cache_control_value { hostnames; default "no-cache"; atlas.* "max-age=864000"; } proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=nginx_cache:100m Loading nginx/snippets/cache-usage.conf +5 −0 Original line number Diff line number Diff line proxy_cache $proxy_cache_zone; proxy_cache_bypass $proxy_cache_bypass_value; proxy_cache_min_uses 2; proxy_cache_revalidate on; proxy_cache_valid 2h; proxy_cache_lock on; proxy_cache_use_stale updating; proxy_cache_background_update on; add_header X-Cache-Status $upstream_cache_status; add_header Cache-Control $cache_control_value; Loading
nginx/snippets/cache-definition.conf +7 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,13 @@ map $http_host $proxy_cache_bypass_value { atlas.* $proxy_cache_bypass_atlas_value; } # Evaluación de control de caché del lado del cliente según dominio map $http_host $cache_control_value { hostnames; default "no-cache"; atlas.* "max-age=864000"; } proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=nginx_cache:100m Loading
nginx/snippets/cache-usage.conf +5 −0 Original line number Diff line number Diff line proxy_cache $proxy_cache_zone; proxy_cache_bypass $proxy_cache_bypass_value; proxy_cache_min_uses 2; proxy_cache_revalidate on; proxy_cache_valid 2h; proxy_cache_lock on; proxy_cache_use_stale updating; proxy_cache_background_update on; add_header X-Cache-Status $upstream_cache_status; add_header Cache-Control $cache_control_value;