import path from 'path';
import renderApp from './renderApp.js';
import express from 'express';
import compression from 'compression';
const server = express();
const port = process.env.PORT || 80;

server.use(compression());
server.use(express.static('public', {maxAge: 31536000})); // 31536000 = one year

server.use('/fireball-js', express.static(path.resolve(__dirname, '../../node_modules/fireball-js')));

server.get('*', renderApp);

server.listen(port, () => {
    console.log('Node running on port', port); // eslint-disable-line no-console
});

if (process.env.NODE_ENV !== 'production') {
    require('../../buildTools/webpackDevServer.js');
}

import path from 'path';
import renderApp from './renderApp.js';
import express from 'express';
import compression from 'compression';
const server = express();
const port = process.env.PORT || 80;

server.use(compression());
server.use(express.static('public'));

server.use('/fireball-js', express.static(path.resolve(__dirname, '../../node_modules/fireball-js')));

server.get('*', renderApp);

server.listen(port, () => {
    console.log('Node running on port', port); // eslint-disable-line no-console
});

if (process.env.NODE_ENV !== 'production') {
    require('../../buildTools/webpackDevServer.js');
}

--- 
+++ 
@@ -6,7 +6,7 @@
 const port = process.env.PORT || 80;
 
 server.use(compression());
-server.use(express.static('public'));
+server.use(express.static('public', {maxAge: 31536000})); // 31536000 = one year
 
 server.use('/fireball-js', express.static(path.resolve(__dirname, '../../node_modules/fireball-js')));
 
Add cache-control max age to static content
