Hi!
I configured memcached and it works well with small image files. For example 2796 bytes gif.
But when I requests 29514 bytes jpg image nginx returns broken image (11310 bytes).
When I requests 35746 bytes jpg nginx returns broken image (16635 bytes)
What should I see?
Thanks in advance.
My environment
nginx(0.8.36)+memcached (1.2.8) on CentOS release 5.4 (Final)
nginx config:
[code]
location ~ \.(gif|png|jpg)$ {
access_log off;
#expires max;
#add_header Last-Modified "Thu, 26 Mar 2000 17:35:45 GMT";
#set $memcached_buffer_size 102400;
#memcached_buffer_size 102400;
set $memcached_key $uri;
memcached_pass 127.0.0.1:11211;
error_page 404 = @fetch;
}
location @fetch {
#internal;
access_log off;
#expires max;
#add_header Last-Modified "Thu, 26 Mar 2000 17:35:45 GMT";
# virtual host of the same enginx instance
proxy_pass http://$NGINXVIRTUALHOST;
#break;
}
[/code]
Edited 1 time(s). Last edit at 05/12/2010 03:06AM by apaskal.