Merge pull request #1270 from google/cache-ttl

Increase cache TTL to 1 hour for code.getmdl.io
master
Surma 2015-07-31 13:45:00 +01:00
commit fef8324436
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ gulp.task('pushCodeFiles', function() {
// (cache control, in this case).
// For cache control, start with 0s (disable caching during dev),
// but consider more helpful interval (e.g. 3600s) after launch.
var cacheControl = '-h "Cache-Control:public,max-age=60"';
var cacheControl = '-h "Cache-Control:public,max-age=3600"';
var gsutilCpCmd = 'gsutil -m cp -z js,css,map ';
var gsutilCacheCmd = 'gsutil -m setmeta -R ' + cacheControl;