Ghost/core/server/utils/asset-hash.js

7 lines
256 B
JavaScript
Raw Normal View History

var crypto = require('crypto'),
packageInfo = require('../../../package.json');
module.exports = function generateAssetHash() {
return (crypto.createHash('md5').update(packageInfo.version + Date.now()).digest('hex')).substring(0, 10);
};