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

Unified Diff: LayoutTests/http/tests/cache/resources/referrer-echo.php

Issue 201973002: Re-set referrer on issuing a validation request for a cached resource. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Emit header()s first Created 6 years, 9 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 | LayoutTests/http/tests/cache/resources/subresource-revalidation-referrer-iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/cache/resources/referrer-echo.php
diff --git a/LayoutTests/http/tests/cache/resources/referrer-echo.php b/LayoutTests/http/tests/cache/resources/referrer-echo.php
new file mode 100644
index 0000000000000000000000000000000000000000..0be4235c04b1f5c8d59742d7975cbc516ff2d97d
--- /dev/null
+++ b/LayoutTests/http/tests/cache/resources/referrer-echo.php
@@ -0,0 +1,5 @@
+<?php
+header("Last-Modified: " . gmdate(DATE_RFC1123, time()));
+header("Content-Type: text/javascript");
+echo "var referrer = '" . (isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : "none") . "';";
+?>
« no previous file with comments | « no previous file | LayoutTests/http/tests/cache/resources/subresource-revalidation-referrer-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698