Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/resources/etag.php

Issue 1558703002: Synchronous requests that get a 304 clobber the cached response body. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cache/sync-xhr-304.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/cache/resources/etag.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/resources/etag.php b/third_party/WebKit/LayoutTests/http/tests/cache/resources/etag.php
new file mode 100644
index 0000000000000000000000000000000000000000..638c00a81a7305b8bce7aea85bf0d4999464df0b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/cache/resources/etag.php
@@ -0,0 +1,10 @@
+<?
+header('ETag: foo');
+header('Cache-control: max-age=0');
+
+if ($_SERVER['HTTP_IF_NONE_MATCH'] == 'foo') {
+ header('HTTP/1.1 304 Not Modified');
+ exit;
+}
+?>
+foo
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/cache/sync-xhr-304.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698