Changes between Initial Version and Version 1 of Ticket #2569
- Timestamp:
- 11/26/23 07:55:06 (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2569 – Description
initial v1 2 2 3 3 nginx relevant config: 4 5 {{{ 6 proxy_cache_background_update on; 7 proxy_cache_key "$MOBILE$scheme$host$request_uri"; 8 proxy_cache_lock on; 4 9 proxy_cache_methods GET HEAD; 5 10 proxy_cache_use_stale timeout invalid_header updating http_429 http_500 http_502 http_503 http_504 http_403; # … … 8 13 proxy_cache_valid 404 15s; 9 14 15 }}} 16 10 17 --- 11 18 I create simple file 404.txt and doing curl two times: 19 20 {{{ 12 21 curl https://x.x.x/404.txt -k -I 13 22 HTTP/2 200 … … 23 32 accept-ranges: bytes 24 33 34 }}} 35 25 36 again: 37 38 {{{ 26 39 HTTP/2 200 27 40 server: nginx … … 36 49 accept-ranges: bytes 37 50 51 }}} 52 38 53 As you see now the file is cached in nginx. 39 54 Now I go and remove this file from server and doing curl again 4 times: 40 curl https://x.x.x/404.txt -k -I 55 56 {{{ 57 curl https://x.x.x/404.txt -k -I 41 58 HTTP/2 200 42 59 server: nginx … … 86 103 x-nginx-upstream-cache-status: STALE 87 104 accept-ranges: bytes 105 }}} 106 88 107 89 108 Now it stales forever, it never refresh. 90 109 I tried to add/remove this config: 110 111 {{{ 91 112 proxy_cache_valid 404 15s; 113 114 }}} 92 115 93 116 but it doesn't change the behavior.