fix r3708 and r3695: valid_sec is set only for caching error status codes
fix r3708 and r3695: valid_sec is set only for caching error status codes

firebase/nginx,hy0kl/nginx,firebase/nginx,firebase/nginx,hy0kl/nginx,hy0kl/nginx,firebase/nginx