mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	closes #2246
This commit is contained in:
		| @@ -15,9 +15,7 @@ var winston = require('winston'), | |||||||
|  |  | ||||||
| module.exports = function(Meta) { | module.exports = function(Meta) { | ||||||
|  |  | ||||||
| 	Meta.css = { | 	Meta.css = {}; | ||||||
| 		'css-buster': +new Date() |  | ||||||
| 	}; |  | ||||||
| 	Meta.css.cache = undefined; | 	Meta.css.cache = undefined; | ||||||
| 	Meta.css.acpCache = undefined; | 	Meta.css.acpCache = undefined; | ||||||
| 	Meta.css.branding = {}; | 	Meta.css.branding = {}; | ||||||
| @@ -132,11 +130,10 @@ module.exports = function(Meta) { | |||||||
| 			Meta.css[destination] = css; | 			Meta.css[destination] = css; | ||||||
|  |  | ||||||
| 			// Calculate css buster | 			// Calculate css buster | ||||||
| 			var hasher = crypto.createHash('md5'), | 			var hasher = crypto.createHash('md5'); | ||||||
| 				hash; |  | ||||||
| 			hasher.update(css, 'utf-8'); | 			hasher.update(css, 'utf-8'); | ||||||
| 			hash = hasher.digest('hex').slice(0, 8); | 			Meta.css.hash = hasher.digest('hex').slice(0, 8); | ||||||
| 			Meta.css.hash = hash; |  | ||||||
|  |  | ||||||
| 			// Save the compiled CSS in public/ so things like nginx can serve it | 			// Save the compiled CSS in public/ so things like nginx can serve it | ||||||
| 			if (!cluster.isWorker || process.env.cluster_setup === 'true') { | 			if (!cluster.isWorker || process.env.cluster_setup === 'true') { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user