Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #13

Merged
merged 13 commits into from
Sep 16, 2020
Merged
Prev Previous commit
Next Next commit
Cleaned old appcache references
  • Loading branch information
sulkaharo committed Sep 14, 2020
commit 685ae5cd5da7c519abfb66d4d87a281648768eab
5 changes: 0 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ function create (env, ctx) {
app.set('view engine', 'ejs');
// this allows you to render .html files as templates in addition to .ejs
app.engine('html', require('ejs').renderFile);
app.engine('appcache', require('ejs').renderFile);
app.set("views", path.join(__dirname, "views/"));

let cacheBuster = 'developmentMode';
Expand Down Expand Up @@ -278,10 +277,6 @@ function create (env, ctx) {
if (process.env.NODE_ENV === 'development') {
maxAge = 1;
console.log('Development environment detected, setting static file cache age to 1 second');

app.get('/nightscout.appcache', function(req, res) {
res.sendStatus(404);
});
}

var staticFiles = express.static(env.static_files, {
Expand Down