Skip to content

Commit f3e5a67

Browse files
committed
cache control
1 parent 6ea247d commit f3e5a67

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ jobs:
158158
if ($LASTEXITCODE -ne 0) { throw "Failed to generate new appcast" }
159159

160160
# Upload the new appcast and signature to GCS.
161-
& gsutil cp $newAppCastPath $env:APPCAST_GCS_URI
161+
& gsutil -h "Cache-Control:no-cache,max-age=0" cp $newAppCastPath $env:APPCAST_GCS_URI
162162
if ($LASTEXITCODE -ne 0) { throw "Failed to upload new appcast" }
163-
& gsutil cp $newAppCastSignaturePath $env:APPCAST_SIGNATURE_GCS_URI
163+
& gsutil -h "Cache-Control:no-cache,max-age=0" cp $newAppCastSignaturePath $env:APPCAST_SIGNATURE_GCS_URI
164164
if ($LASTEXITCODE -ne 0) { throw "Failed to upload new appcast signature" }
165165
env:
166166
APPCAST_GCS_URI: gs://releases.coder.com/coder-desktop/windows/appcast.xml

scripts/Update-AppCast.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ param (
2727
[string] $channel,
2828

2929
[Parameter(Mandatory = $false)]
30-
[string] $pubDate = (Get-Date).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss +0000"),
30+
[ValidatePattern("^\w{3}, \d{2} \w{3} \d{4} \d{2}:\d{2}:\d{2} \+00:00$")]
31+
[string] $pubDate = (Get-Date).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss +00:00"),
3132

3233
[Parameter(Mandatory = $true)]
3334
[ValidateScript({ Test-Path $_ })]

0 commit comments

Comments
 (0)