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
+4
-0
src/http/ngx_http_upstream.c
less
more
530
530
ngx_int_t rc;
531
531
ngx_http_cache_t *c;
532
532
533
if (!(r->method & NGX_HTTP_GET)) {
534
return NGX_DECLINED;
535
}
536
533
537
c = ngx_pcalloc(r->pool, sizeof(ngx_http_cache_t));
534
538
if (c == NULL) {
535
539
return NGX_ERROR;