Commit ee5de666 authored by Robert Knight's avatar Robert Knight

Reduce boot script cache expiry time

Reduce the potential for mismatches between the client versions loaded
in the annotator and sidebar when rolling out a new release by
shortening the cache expiry time on the boot script.

Set a very short expiry time on the browser cache TTL and a slightly
longer time on the edge cache.
parent 2233d721
......@@ -132,7 +132,7 @@ async function uploadPackageToS3(bucket, options) {
// nb. When deploying to cdn.hypothes.is, the max-age seen by the browser is
// the higher of the value here and CloudFlare's "Browser Cache TTL"
// setting.
aliasCacheControl = 'public, max-age=1800, must-revalidate';
aliasCacheControl = 'public, s-maxage=300, max-age=60, must-revalidate';
} else {
aliasCacheControl = 'no-cache';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment