ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: fastcgi_cache не кеширует ответ
  • From: Andrew Sitnikov <sitnikov@xxxxxxxxxx>
  • Date: Fri, 18 Feb 2011 09:28:08 +0200
  • Organization: Infonet AS

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@xxxxxxxxxx

Attachment: 2262.log.gz
Description: GNU Zip compressed data

Attachment: 2965.log.gz
Description: GNU Zip compressed data

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.