大文件流式缓存联调通过。UNDEFINE类型100KB以上进行缓存。

This commit is contained in:
zhengchao
2018-10-16 21:16:58 +08:00
parent 37b4f3a644
commit 1723fa1029
5 changed files with 30 additions and 6 deletions

View File

@@ -273,6 +273,10 @@ enum cache_pending_action tfe_cache_put_pending(const struct tfe_http_half *resp
int index = 0;
const char *value = NULL;
memset(freshness,0,sizeof(struct response_freshness));
if(response->resp_spec.resp_code!=TFE_HTTP_STATUS_OK)
{
return FORBIDDEN;
}
value = tfe_http_std_field_read(response, TFE_HTTP_PRAGMA);
if (value != NULL)
{