From aca2f2ec7d7ab6af419683e23c4d3605bd0a7830 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 15 Jan 2025 16:34:56 +0900 Subject: [PATCH] ops: Set expires -1 header on 2s server cached responses --- production/nginx/location-api.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/production/nginx/location-api.conf b/production/nginx/location-api.conf index 80f513147..b337c0f5b 100644 --- a/production/nginx/location-api.conf +++ b/production/nginx/location-api.conf @@ -140,7 +140,8 @@ location @mempool-api-v1-cache-normal { proxy_cache_valid 200 2s; proxy_redirect off; - expires 2s; + # cache for 2 seconds on server, but send expires -1 so browser doesn't cache + expires -1; } location @mempool-api-v1-cache-disabled {