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

Side by Side Diff: LayoutTests/http/tests/cache/resources/x-frame-options.php

Issue 216553010: Remove carriage returns from LayoutTests (04) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <?php 1 <?php
2 require_once '../../resources/portabilityLayer.php'; 2 require_once '../../resources/portabilityLayer.php';
3 3
4 clearstatcache(); 4 clearstatcache();
5 5
6 if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) { 6 if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
7 header("HTTP/1.0 304 Not Modified"); 7 header("HTTP/1.0 304 Not Modified");
8 exit(); 8 exit();
9 } 9 }
10 $one_year = 12 * 31 * 24 * 60 * 60; 10 $one_year = 12 * 31 * 24 * 60 * 60;
11 $last_modified = gmdate(DATE_RFC1123, time() - $one_year); 11 $last_modified = gmdate(DATE_RFC1123, time() - $one_year);
12 $expires = gmdate(DATE_RFC1123, time() + $one_year); 12 $expires = gmdate(DATE_RFC1123, time() + $one_year);
13 13
14 14
15 header('Cache-Control: no-cache, max-age=' . $one_year); 15 header('Cache-Control: no-cache, max-age=' . $one_year);
16 header('Expires: ' . $expires); 16 header('Expires: ' . $expires);
17 header('Content-Type: text/html'); 17 header('Content-Type: text/html');
18 header('Etag: 123456789'); 18 header('Etag: 123456789');
19 header('Last-Modified: ' . $last_modified); 19 header('Last-Modified: ' . $last_modified);
20 header('X-FRAME-OPTIONS: ALLOWALL'); 20 header('X-FRAME-OPTIONS: ALLOWALL');
21 21
22 echo "<body><script>\n"; 22 echo "<body><script>\n";
23 echo "window.onload = function() { window.parent.test(); }\n"; 23 echo "window.onload = function() { window.parent.test(); }\n";
24 echo "</script></body>\n"; 24 echo "</script></body>\n";
25 25
26 ?> 26 ?>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/cache/resources/stylesheet304.php ('k') | LayoutTests/http/tests/cookies/resources/setArraycookies.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698