fastcgi_cache не кеширует ответ

Andrew Sitnikov sitnikov на infonet.ee
Пт Фев 18 10:28:08 MSK 2011


Hello ,

 кусок конфига

 location  /js {
     access_log off;
                                                                                                                                                                                             
     fastcgi_cache cache;
                                                                                                                                                                                             
     fastcgi_cache_valid 200 302 10m;
     fastcgi_cache_valid 404 1m;
     fastcgi_cache_key $request_uri;
     fastcgi_cache_use_stale updating;
                                                                                                                                                                                             
     fastcgi_pass 127.0.0.1:9000;
                                                                                                                                                                                             
     include "/etc/nginx/params.d/fastcgi_params.conf";
     fastcgi_param SCRIPT_FILENAME $document_root/index.php;
     fastcgi_param SCRIPT_NAME /index.php;
                                                                                                                                                                                             
     fastcgi_hide_header X-Powered-By;
                                                                                                                                                                                             
     add_header  X-Nginx-Cache  "yes,js";
 }

 в аттаче - debug log (2262)

 рядом точно такая же конфигурация /htmlbanner {} и там кешируется, лог 2965



-- 
Best regards,
 Andrew                          mailto:sitnikov at infonet.ee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2262.log.gz
Type: application/x-gzip
Size: 3157 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20110218/f03f9b9a/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2965.log.gz
Type: application/x-gzip
Size: 5157 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20110218/f03f9b9a/attachment-0003.bin>


Подробная информация о списке рассылки nginx-ru