adjust cache ttl to 60s for code.getmdl.io objects

master
Marc Cohen 2015-07-05 20:43:13 +01:00
parent 750ebdb76e
commit 7089f2738c
1 changed files with 1 additions and 1 deletions

View File

@ -537,7 +537,7 @@ gulp.task('pushCodeFiles', ['zip:mdl', 'zip:templates'], function() {
// but consider more helpful interval (e.g. 3600s) after launch.
var dest = bucketCode;
var infoMsg = 'Publishing ' + pkg.version + ' to CDN (' + dest + ')';
var cacheControl = '-h "Cache-Control:public,max-age=0"';
var cacheControl = '-h "Cache-Control:public,max-age=60"';
var gsutilCpCmd = 'gsutil -m cp ';
var gsutilCacheCmd = 'gsutil -m setmeta -R ' + cacheControl;