Hi everybody, I have the following situation: Incoming request with method POST has binary body. I would like to extract piece(s) from the payload to use it like a caching key. Something like: if ( $request_body ~* (action.*) ) { set $key $1; } ... proxy_cache_key $uri|$key Unfortunately it does not work for me even if I specified (like Igor advised): client_max_body_sby qzpmwo - Nginx Mailing List - English
Hi Igor, Thanks a lot for your help. Problem was with the request body. Now everything is working as expected. Sincerely --->>> qzpmwo <<<---by qzpmwo - Nginx Mailing List - English
Actually I was wrong. Response "Content-Length" header says 66 bytes, so response is not empty. If I disable caching of that request, application works. If it is enabled it stops after first cache HIT. As I mentioned in previous mail I will try to get more data (tcpdump and nginx with debug) tomorrow. Thanks --->>> qzpmwo <<<---by qzpmwo - Nginx Mailing List - English
Hi Igor, Payload size is small around 120 bytes according to my data. Response is empty. May be that is why? Tomorrow I will try to recompile nginx with debug enabled and may be get more data. Thanks a lot for support. --->>> qzpmwo <<<---by qzpmwo - Nginx Mailing List - English
Hi Igor, Thanks a lot for so fast answer and for so wonderful product! I will try to use your trick with request_body, though in my case it is an AMF binary. I updated to 1.0.5 and have weird problem now (from error log): http: file cache: /tmp/nginx-cache 0.000M, bsize: 4096 signal 17 (SIGCHLD) recieved cache loader process 11737 exited with code 0 signal 29 (SIGIO) recieved :(by qzpmwo - Nginx Mailing List - English
Hi everybody, Sorry for not reading documentation properly. proxy_cache_methods is a saver! Thanks a lot, case closed :) --->>> qzpmwo <<< ---by qzpmwo - Nginx Mailing List - English
Hi everybody, I'm a newbie with nginx and would like to ask your help. On potentially very high loaded site I would like to cache response to the HTTP POST for the few seconds. Works perfectly for GETs, but... nginx version: nginx/0.8.54 Please see below my config: proxy_cache_path /tmp/nginx levels=2:2:2 keys_zone=small:1m inactive=1m max_size=10m; server { log_format main '$rby qzpmwo - Nginx Mailing List - English