Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf3e5a67

Browse files
committed
cache control
1 parent6ea247d commitf3e5a67

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)

[8]ページ先頭

©2009-2025 Movatter.jp