Klaus Demo nginx / 56f8650
cache GET requests only Igor Sysoev 13 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
530530 ngx_int_t rc;
531531 ngx_http_cache_t *c;
532532
533 if (!(r->method & NGX_HTTP_GET)) {
534 return NGX_DECLINED;
535 }
536
533537 c = ngx_pcalloc(r->pool, sizeof(ngx_http_cache_t));
534538 if (c == NULL) {
535539 return NGX_ERROR;