Commit e99b5cfd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only attempt IMS on status=200 objects.

parent 06ba9c2a
......@@ -199,7 +199,7 @@ vbf_stp_mkbereq(const struct worker *wrk, struct busyobj *bo)
http_CopyHome(bo->bereq0);
}
if (bo->ims_obj != NULL) {
if (bo->ims_obj != NULL && bo->ims_obj->http->status == 200) {
if (http_GetHdr(bo->ims_obj->http, H_Last_Modified, &p)) {
http_PrintfHeader(bo->bereq0,
"If-Modified-Since: %s", p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment