skip to Main Content

Nginx cache entry after header update

Nginx cache with proxy_cache_background_update on; some api response that has Cache-Control=max-age=7, public, stale-while-revalidate=59. After a while upstream response changes header for the same resource to Cache-Control=private, no-cache, must-revalidate. Nginx will continue to serve old stale content and never return new…

VIEW QUESTION
Back To Top
Search