Skip to content

Commit

Permalink
Small updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Jan 18, 2019
1 parent d5e4ab7 commit 9385b05
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file removed src/icon.png
Binary file not shown.
4 changes: 2 additions & 2 deletions src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import axios from 'axios';
import express from 'express';
import functions from 'firebase-functions';
import https from 'https';
import lruCache from 'lru-cache';
import LRU from 'lru-cache';

// Local ES2105 imports.
import {DEFAULT_TAG} from './lib/constants.mjs';
Expand Down Expand Up @@ -47,7 +47,7 @@ const httpsAgent = new https.Agent({
// to obtain API responses from this server process. But, to cut down on the
// number of API requests that fresh browser clients might trigger, let's put
// in some light-weight caching that's local to this process.
const apiCache = lruCache({
const apiCache = new LRU({
max: 100,
maxAge: 1000 * 60 * 5, // 5 minutes.
});
Expand Down
Binary file modified src/static/icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion workbox-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const path = require('path');
module.exports = {
globDirectory: 'build',
globPatterns: [
'**/*.{html,js,svg}',
'**/*.{html,js,svg,png,json}',
],
swSrc: path.join(os.tmpdir(), 'service-worker.js'),
swDest: path.join('build', 'service-worker.js'),
Expand Down

0 comments on commit 9385b05

Please sign in to comment.