@@ -234,12 +234,15 @@ jobs:
234234 *.deb) ct="application/vnd.debian.binary-package" ;;
235235 *.rpm) ct="application/x-rpm" ;;
236236 esac
237- put_with_cache "$f" "${VERSION_PREFIX}/${name}" "public, max-age=604800 " "$ct"
237+ put_with_cache "$f" "${VERSION_PREFIX}/${name}" "public, max-age=2592000 " "$ct"
238238 done
239239
240- put_with_cache "release-output/manifest.json" "${VERSION_PREFIX}/manifest.json" "public, max-age=604800" "application/json"
241- put_with_cache "release-output/checksums.txt" "${VERSION_PREFIX}/checksums.txt" "public, max-age=604800" "text/plain"
242- put_with_cache "release-output/release-notes.md" "${VERSION_PREFIX}/release-notes.md" "public, max-age=604800" "text/markdown"
240+ put_with_cache "release-output/manifest.json" "${VERSION_PREFIX}/manifest.json" "public, max-age=2592000" "application/json"
241+ put_with_cache "release-output/checksums.txt" "${VERSION_PREFIX}/checksums.txt" "public, max-age=2592000" "text/plain"
242+ put_with_cache "release-output/release-notes.md" "${VERSION_PREFIX}/release-notes.md" "public, max-age=2592000" "text/markdown"
243+
244+ put_with_cache "release-output/manifest.json" "${LATEST_PREFIX}/manifest.json" "public, max-age=60" "application/json"
245+ echo " uploaded manifest: ${LATEST_PREFIX}/manifest.json"
243246
244247 for f in dist/ellamaka-desktop-*; do
245248 [ -f "$f" ] || continue
@@ -252,12 +255,12 @@ jobs:
252255 case "$name" in
253256 *.zip) ct="application/zip" ;;
254257 esac
255- put_with_cache "$f" "${LATEST_PREFIX}/${name}" "public, max-age=300 " "$ct"
258+ put_with_cache "$f" "${LATEST_PREFIX}/${name}" "public, max-age=60 " "$ct"
256259 done
257260
258261 for feed in latest-mac.yml latest.yml latest-linux.yml; do
259262 if [ -f "dist/${feed}" ]; then
260- put_with_cache "dist/${feed}" "${LATEST_PREFIX}/${feed}" "public, max-age=300 " "application/x-yaml"
263+ put_with_cache "dist/${feed}" "${LATEST_PREFIX}/${feed}" "public, max-age=60 " "application/x-yaml"
261264 echo " uploaded feed: ${LATEST_PREFIX}/${feed}"
262265 else
263266 echo " WARNING: feed not found, skipping: dist/${feed}"
@@ -331,6 +334,7 @@ jobs:
331334 VERSION_BASE="${CDN_ROOT}/v${VERSION}"
332335 LATEST_BASE="${CDN_ROOT}/latest"
333336 PURGE_URLS=(
337+ "${LATEST_BASE}/manifest.json"
334338 "${LATEST_BASE}/latest-mac.yml"
335339 "${LATEST_BASE}/latest.yml"
336340 "${LATEST_BASE}/latest-linux.yml"
0 commit comments