缓存判定未正确处理miss状态,修复此问题。
This commit is contained in:
@@ -1007,9 +1007,9 @@ static void cache_pending_on_succ(future_result_t * result, void * user)
|
||||
ctx->pending_result = PENDING_RESULT_MISS;
|
||||
return;
|
||||
}
|
||||
if(!(meta->etag && meta->last_modified))
|
||||
if( meta->etag==NULL && meta->last_modified==NULL)
|
||||
{
|
||||
ctx->pending_result = PENDING_RESULT_FOBIDDEN;
|
||||
ctx->pending_result = PENDING_RESULT_MISS;
|
||||
return;
|
||||
}
|
||||
ctx->pending_result=PENDING_RESULT_REVALIDATE;
|
||||
|
||||
Reference in New Issue
Block a user