diff options
author | João Moreno <joao.moreno@microsoft.com> | 2020-10-23 12:12:29 +0300 |
---|---|---|
committer | João Moreno <joao.moreno@microsoft.com> | 2020-10-23 12:12:44 +0300 |
commit | 50f78a6609b09db0b2de16f6634b73b15fcdf939 (patch) | |
tree | 14512a165ded8b11f224c348dc91a3bff77097e8 /build/azure-pipelines/upload-cdn.ts | |
parent | da3b8a8ec16d069949953446687c135bf0a971ac (diff) |
set cache control for web cdn
Diffstat (limited to 'build/azure-pipelines/upload-cdn.ts')
-rw-r--r-- | build/azure-pipelines/upload-cdn.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/azure-pipelines/upload-cdn.ts b/build/azure-pipelines/upload-cdn.ts index e99c3baa71f..02dec40d741 100644 --- a/build/azure-pipelines/upload-cdn.ts +++ b/build/azure-pipelines/upload-cdn.ts @@ -27,7 +27,10 @@ function main() { account: process.env.AZURE_STORAGE_ACCOUNT, key: process.env.AZURE_STORAGE_ACCESS_KEY, container: process.env.VSCODE_QUALITY, - prefix: commit + '/' + prefix: commit + '/', + contentSettings: { + cacheControl: 'max-age=31536000, public' + } })); } |