Skip to content

Commit

Permalink
Return 404 on app cache request when in development mode, added bold …
Browse files Browse the repository at this point in the history
…weight Ubuntu
  • Loading branch information
sulkaharo committed Aug 23, 2017
1 parent f451503 commit 918ecc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ function create(env, ctx) {
if (process.env.NODE_ENV === 'development') {
maxAge = 10;
console.log('Development environment detected, setting static file cache age to 10 seconds');

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

//TODO: JC - changed cache to 1 hour from 30d ays to bypass cache hell until we have a real solution
Expand Down
2 changes: 1 addition & 1 deletion static/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

@import url("//fonts.googleapis.com/css?family=Ubuntu:400");
@import url("//fonts.googleapis.com/css?family=Ubuntu:400,600");

@font-face {
font-family: 'nsicons';
Expand Down

0 comments on commit 918ecc2

Please sign in to comment.