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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/https-in-page-cache-2.php

Issue 14495004: Remove left-over PageCache stuff (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
(Empty)
1 <?php
2 header("cache-control: no-cache");
3 ?>
4 <script>
5
6 function nextTest() {
7 if (window.sessionStorage.https_in_page_cache_started)
8 delete window.sessionStorage.https_in_page_cache_started;
9 location = "https://127.0.0.1:8443/navigation/resources/https-in-page-ca che-3.html";
10 }
11
12 window.onpageshow = function(evt) {
13 if (evt.persisted) {
14 alert("The page was restored from the page cache. It should NOT have been. Running part 3 of the test.");
15 nextTest();
16 }
17 }
18
19 window.onload = function() {
20 if (window.sessionStorage.https_in_page_cache_started) {
21 alert("The page was reloaded on back, not from the page cache. G ood job. Running part 3 of the test.");
22 nextTest();
23 return;
24 }
25
26 alert("This page is https and has the no-cache cache-control directive. It should NOT go in to the page cache.");
27 window.sessionStorage.https_in_page_cache_started = true;
28 setTimeout('window.location = "go-back.html"', 0);
29
30 }
31
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698