From 45f70e741ffa0798fcfa0e613f1b37380e2877bf Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 16 Jan 2020 11:36:17 -0600 Subject: [PATCH] Move manifest to the root Fixes #1278. --- src/browser/login.html | 2 +- src/browser/workbench-build.html | 2 +- src/browser/workbench.html | 2 +- src/node/server.ts | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/browser/login.html b/src/browser/login.html index fd4afff98..0440c4ede 100644 --- a/src/browser/login.html +++ b/src/browser/login.html @@ -5,7 +5,7 @@ Authenticate: code-server - + diff --git a/src/browser/workbench-build.html b/src/browser/workbench-build.html index d55d4dd8e..014cc1f34 100644 --- a/src/browser/workbench-build.html +++ b/src/browser/workbench-build.html @@ -20,7 +20,7 @@ - + diff --git a/src/browser/workbench.html b/src/browser/workbench.html index 84ef1e51e..4e566bdca 100644 --- a/src/browser/workbench.html +++ b/src/browser/workbench.html @@ -20,7 +20,7 @@ - + diff --git a/src/node/server.ts b/src/node/server.ts index ff4c88e18..db8c55963 100644 --- a/src/node/server.ts +++ b/src/node/server.ts @@ -296,6 +296,12 @@ export abstract class Server { switch (base) { case "/": + switch (requestPath) { + case "/manifest.json": + const response = await this.getResource(this.serverRoot, "media", requestPath); + response.cache = true; + return response; + } if (!this.authenticate(request)) { return { redirect: "/login" }; }