From c969263299f43c00af4eee8902e6fe372ec32d95 Mon Sep 17 00:00:00 2001 From: Nick Martin Date: Mon, 6 Oct 2014 23:54:42 -0700 Subject: [PATCH] Point to a non-existent file when testing to clear appcache properly. --- packages/appcache/appcache_tests-server.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/appcache/appcache_tests-server.js b/packages/appcache/appcache_tests-server.js index b4398cb9a1..6632db9513 100644 --- a/packages/appcache/appcache_tests-server.js +++ b/packages/appcache/appcache_tests-server.js @@ -5,9 +5,11 @@ // depending on the state of the browser cache. To do that we disable // the "manifest" attribute of the tag. This runs after appcache // registers its hook, so this hook overrides the return value of the -// real hook. +// real hook. We point to a non-existent file to clear the appcache in +// case there was previously a site running with appcache on +// localhost:3000. WebApp.addHtmlAttributeHook(function (request) { - return { manifest: "" }; + return { manifest: "/no-such-file" }; });