Changes between Initial Version and Version 1 of Ticket #2569


Ignore:
Timestamp:
11/26/23 07:55:06 (6 months ago)
Author:
devpets@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2569 – Description

    initial v1  
    22
    33nginx relevant config:
     4
     5{{{
     6proxy_cache_background_update on;
     7proxy_cache_key                "$MOBILE$scheme$host$request_uri";
     8proxy_cache_lock               on;
    49proxy_cache_methods            GET HEAD;
    510proxy_cache_use_stale          timeout invalid_header updating http_429 http_500 http_502 http_503 http_504 http_403; #
     
    813proxy_cache_valid              404 15s;
    914
     15}}}
     16
    1017---
    1118I create simple file 404.txt and doing curl two times:
     19
     20{{{
    1221curl https://x.x.x/404.txt -k -I
    1322HTTP/2 200
     
    2332accept-ranges: bytes
    2433
     34}}}
     35
    2536again:
     37
     38{{{
    2639HTTP/2 200
    2740server: nginx
     
    3649accept-ranges: bytes
    3750
     51}}}
     52
    3853As you see now the file is cached in nginx.
    3954Now 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{{{
     57curl https://x.x.x/404.txt -k -I
    4158HTTP/2 200
    4259server: nginx
     
    86103x-nginx-upstream-cache-status: STALE
    87104accept-ranges: bytes
     105}}}
     106
    88107
    89108Now it stales forever, it never refresh.
    90109I tried to add/remove this config:
     110
     111{{{
    91112proxy_cache_valid              404 15s;
     113
     114}}}
    92115
    93116but it doesn't change the behavior.