Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Moreno <joao.moreno@microsoft.com>2020-10-23 12:12:29 +0300
committerJoão Moreno <joao.moreno@microsoft.com>2020-10-23 12:12:44 +0300
commit50f78a6609b09db0b2de16f6634b73b15fcdf939 (patch)
tree14512a165ded8b11f224c348dc91a3bff77097e8 /build/azure-pipelines/upload-cdn.ts
parentda3b8a8ec16d069949953446687c135bf0a971ac (diff)
set cache control for web cdn
Diffstat (limited to 'build/azure-pipelines/upload-cdn.ts')
-rw-r--r--build/azure-pipelines/upload-cdn.ts5
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'
+ }
}));
}