Commit 3c032f9d authored by Yutaka Hirano's avatar Yutaka Hirano Committed by Commit Bot

Stop attaching 'cache-control: max-age=0' in sendBeacon

We've attached the header to requests initiated by sendBeacon() but it
is not spec conformant. Let's stop doing that.

Bug: 755725
Change-Id: Ia8b85a27b84c77b35edc211c325490467c853330
Reviewed-on: https://chromium-review.googlesource.com/952104Reviewed-by: default avatarAdam Rice <ricea@chromium.org>
Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541719}
parent 5eb8c59b
......@@ -187,7 +187,6 @@ bool SendBeaconCommon(LocalFrame* frame,
ResourceRequest request(url);
request.SetHTTPMethod(HTTPNames::POST);
request.SetHTTPHeaderField(HTTPNames::Cache_Control, "max-age=0");
request.SetKeepalive(true);
request.SetRequestContext(WebURLRequest::kRequestContextBeacon);
beacon.Serialize(request);
......
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