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

Unified Diff: LayoutTests/http/tests/cache/resources/stylesheet304-bad-content-type.php

Issue 23591029: Revalidation header blacklisting should be case-insensitive. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No copies. Created 7 years, 3 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
Index: LayoutTests/http/tests/cache/resources/stylesheet304-bad-content-type.php
diff --git a/LayoutTests/http/tests/cache/resources/stylesheet304-bad-content-type.php b/LayoutTests/http/tests/cache/resources/stylesheet304-bad-content-type.php
new file mode 100644
index 0000000000000000000000000000000000000000..2adf6c8279e664ea1cb6f0d031c0dfde26219cee
--- /dev/null
+++ b/LayoutTests/http/tests/cache/resources/stylesheet304-bad-content-type.php
@@ -0,0 +1,21 @@
+<?php
+require_once '../../resources/portabilityLayer.php';
+
+clearstatcache();
+
+if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
+ header("HTTP/1.0 304 Not Modified");
+ header("Content-Type: text/plain");
+ exit();
+}
+$one_year = 12 * 31 * 24 * 60 * 60;
+$last_modified = gmdate(DATE_RFC1123, time() - $one_year);
+$expires = gmdate(DATE_RFC1123, time() + $one_year);
+
+header('Cache-Control: public, max-age=' . $one_year);
+header('Expires: ' . $expires);
+header('Content-Type: text/css');
+header('Etag: 123456789');
+header('Last-Modified: ' . $last_modified);
+?>
+#test { background-color: rgb(0, 255, 0); }
« no previous file with comments | « LayoutTests/http/tests/cache/content-type-ignored-during-revalidation-expected.txt ('k') | Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698