ops: Set expires -1 header on 2s server cached responses

This commit is contained in:
wiz committed 2025-01-15 16:34:56 +09:00
1 parent 803b005880
commit aca2f2ec7d
1 file changed
+2 -1
+2 -1
View File
@@ -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 {