Commit 6f062454 authored by techird's avatar techird

no-cache

parent 76d1f0af
...@@ -131,12 +131,21 @@ module.exports = function(grunt) { ...@@ -131,12 +131,21 @@ module.exports = function(grunt) {
}] }]
}, },
noCache: { pageNoCache: {
src: distPages, src: distPages,
overwrite: true, overwrite: true,
replacements: [{ replacements: [{
from: /src=\"(.+?)\.js\"/ig, from: /(src|href)=\"(.+?)\.(js|css)\"/ig,
to: 'src="$1.js?_=' + (+new Date()) + '"' to: '$1="$2.$3?_=' + (+new Date()) + '"'
}]
},
imageNoCache: {
src: 'dist/ui/theme/default/css/default.all.css',
overwrite: true,
replacements: [{
from: /\.png/ig,
to: '.png?_=' + (+new Date())
}] }]
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment