@gallop.software/studio 2.3.107 → 2.3.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +18 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -4687,7 +4687,15 @@ async function startServer(options) {
|
|
|
4687
4687
|
);
|
|
4688
4688
|
app.post("/api/studio/delete", wrapHandler(handleDelete));
|
|
4689
4689
|
app.post("/api/studio/delete-stream", wrapHandler(handleDeleteStream, true));
|
|
4690
|
-
app.use(express.static(join(workspace, "public")
|
|
4690
|
+
app.use(express.static(join(workspace, "public"), {
|
|
4691
|
+
etag: false,
|
|
4692
|
+
lastModified: false,
|
|
4693
|
+
setHeaders: (res) => {
|
|
4694
|
+
res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate");
|
|
4695
|
+
res.setHeader("Pragma", "no-cache");
|
|
4696
|
+
res.setHeader("Expires", "0");
|
|
4697
|
+
}
|
|
4698
|
+
}));
|
|
4691
4699
|
const clientDir = resolve(__dirname, "../client");
|
|
4692
4700
|
app.get("/", (req, res) => {
|
|
4693
4701
|
const htmlPath = join(clientDir, "index.html");
|
|
@@ -4704,7 +4712,15 @@ async function startServer(options) {
|
|
|
4704
4712
|
res.status(404).send("Client not built. Run npm run build first.");
|
|
4705
4713
|
}
|
|
4706
4714
|
});
|
|
4707
|
-
app.use(express.static(clientDir
|
|
4715
|
+
app.use(express.static(clientDir, {
|
|
4716
|
+
etag: false,
|
|
4717
|
+
lastModified: false,
|
|
4718
|
+
setHeaders: (res) => {
|
|
4719
|
+
res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate");
|
|
4720
|
+
res.setHeader("Pragma", "no-cache");
|
|
4721
|
+
res.setHeader("Expires", "0");
|
|
4722
|
+
}
|
|
4723
|
+
}));
|
|
4708
4724
|
const title = `Gallop - Studio (${version})`;
|
|
4709
4725
|
app.listen(port, () => {
|
|
4710
4726
|
console.log(`
|