mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Point to a non-existent file when testing to clear appcache properly.
This commit is contained in:
@@ -5,9 +5,11 @@
|
||||
// depending on the state of the browser cache. To do that we disable
|
||||
// the "manifest" attribute of the <html> 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" };
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user