Opened 3 years ago

Closed 3 years ago

#1093 closed enhancement (fixed)

Support http_429 in *_cache_use_stale

Reported by: tvdavid@… Owned by:
Priority: minor Milestone:
Component: nginx-module Version: 1.11.x
Keywords: Cc:
uname -a:
nginx -V: 1.11

Description

Use case: we use nginx with fastcgi_cache to cache responses from a backend application. Clients can request nginx-cached endpoints without limits, but the backend performs rate limiting to protect itself by returning a HTTP 429 if the limit is exceeded.

It would be very useful to allow serving a stale cache entry when the upstream returns a 429, since the client would probably prefer a stale reply over no reply at all.

Change History (3)

comment:2 by piotrsikora.google.com@…, 3 years ago

Fixed in 3ef4cadfad7f, fa56ab75cffc (nginx-1.11.13).

comment:3 by Maxim Dounin, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.