diff --git a/public/admin.html b/public/admin.html index 55cc6d5..5291a3e 100644 --- a/public/admin.html +++ b/public/admin.html @@ -793,6 +793,6 @@ - + diff --git a/public/index.html b/public/index.html index 929bd51..d8c8d53 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ Homeschool - + @@ -366,6 +366,6 @@ - + diff --git a/server.js b/server.js index def4550..11362b6 100644 --- a/server.js +++ b/server.js @@ -36,7 +36,7 @@ const app = express(); app.use(express.json({ limit: '15mb' })); // photos for page-scanning are base64 in the JSON body app.use(express.static(join(ROOT, 'public'), { setHeaders(res, filePath) { - if (filePath.endsWith('.css') || filePath.endsWith('.js')) { + if (filePath.endsWith('.css') || filePath.endsWith('.js') || filePath.endsWith('.html')) { res.setHeader('Cache-Control', 'no-cache'); } },