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

This commit is contained in:
wiz 2025-01-15 16:34:56 +09:00
parent 803b005880
commit aca2f2ec7d
No known key found for this signature in database
GPG Key ID: A394E332255A6173

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 {