File tree Expand file tree Collapse file tree 3 files changed +24
-13
lines changed Expand file tree Collapse file tree 3 files changed +24
-13
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,16 @@ ngx_http_srcache_access_handler(ngx_http_request_t *r)
154
154
155
155
dd ("srcache fetch header returned %d" , (int ) rc );
156
156
157
- if (rc == NGX_ERROR || rc > NGX_OK || r -> header_only ) {
157
+ if (rc == NGX_ERROR || rc > NGX_OK ) {
158
158
return rc ;
159
159
}
160
160
161
+ #if 1
162
+ if (r -> header_only ) {
163
+ return NGX_HTTP_OK ;
164
+ }
165
+ #endif
166
+
161
167
if (!r -> filter_finalize ) {
162
168
rc = ngx_http_srcache_next_body_filter (r ,
163
169
ctx -> body_from_cache );
Original file line number Diff line number Diff line change 76
76
77
77
default_type text/css;
78
78
79
- echo world ;
79
+ proxy_pass http://agentzh.org:12345/ ;
80
80
}
81
81
82
82
location /memc {
@@ -107,7 +107,7 @@ hello
107
107
108
108
default_type text/css;
109
109
110
- echo world ;
110
+ proxy_pass http://agentzh.org:12345/ ;
111
111
}
112
112
113
113
location /memc {
@@ -125,6 +125,11 @@ If-Modified-Since: Thu, 10 May 2012 07:50:59 GMT
125
125
!Content-Type
126
126
!Content-Length
127
127
Last-Modified: Thu, 10 May 2012 07:50:59 GMT
128
+ --- stap2
129
+ F(ngx_http_core_content_phase) {
130
+ printf("r content handler: %s\n", usymname($r->content_handler))
131
+ }
132
+
128
133
--- error_code: 304
129
134
--- response_body
130
135
--- no_error_log
@@ -140,7 +145,7 @@ Last-Modified: Thu, 10 May 2012 07:50:59 GMT
140
145
141
146
default_type text/css;
142
147
143
- echo world ;
148
+ proxy_pass http://agentzh.org:12345/ ;
144
149
}
145
150
146
151
location /memc {
@@ -174,7 +179,7 @@ hello
174
179
175
180
default_type text/css;
176
181
177
- echo world ;
182
+ proxy_pass http://agentzh.org:12345/ ;
178
183
}
179
184
180
185
location /memc {
@@ -208,7 +213,7 @@ Last-Modified: Thu, 10 May 2012 07:50:59 GMT
208
213
209
214
default_type text/css;
210
215
211
- echo world ;
216
+ proxy_pass http://agentzh.org:12345/ ;
212
217
}
213
218
214
219
location /memc {
@@ -241,7 +246,7 @@ Content-Length: 182
241
246
242
247
default_type text/css;
243
248
244
- echo world ;
249
+ proxy_pass http://agentzh.org:12345/ ;
245
250
}
246
251
247
252
location /memc {
@@ -274,7 +279,7 @@ hello
274
279
275
280
default_type text/css;
276
281
277
- echo world ;
282
+ proxy_pass http://agentzh.org:12345/ ;
278
283
}
279
284
280
285
location /memc {
Original file line number Diff line number Diff line change 65
65
srcache_fetch GET /memc $uri;
66
66
srcache_store PUT /memc $uri;
67
67
68
- echo world ;
68
+ proxy_pass http://agentzh.org:12345/ ;
69
69
}
70
70
71
71
location /memc {
@@ -121,7 +121,7 @@ world
121
121
srcache_store PUT /memc $uri;
122
122
srcache_methods POST;
123
123
124
- echo world ;
124
+ proxy_pass http://agentzh.org:12345/ ;
125
125
}
126
126
127
127
location /memc {
@@ -150,7 +150,7 @@ hello
150
150
srcache_store PUT /memc $uri;
151
151
srcache_methods POST PUT;
152
152
153
- echo world ;
153
+ proxy_pass http://agentzh.org:12345/ ;
154
154
}
155
155
156
156
location /memc {
@@ -178,7 +178,7 @@ hello
178
178
srcache_store PUT /memc $uri;
179
179
srcache_methods POST;
180
180
181
- echo world ;
181
+ proxy_pass http://agentzh.org:12345/ ;
182
182
}
183
183
184
184
location /memc {
@@ -320,7 +320,7 @@ hello
320
320
srcache_fetch GET /memc $uri;
321
321
srcache_store PUT /memc $uri;
322
322
323
- echo world ;
323
+ proxy_pass http://agentzh.org:12345/ ;
324
324
}
325
325
326
326
location /memc {
You can’t perform that action at this time.
0 commit comments