s-maxage => maxage

Try this to see if it improves on
https://github.com/NixOS/nixos-org-configurations/issues/169
This commit is contained in:
Jonas Chevalier 2021-10-21 15:02:38 +02:00
parent 4587d77d92
commit 20845261a3
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7

View file

@ -325,11 +325,11 @@ if ($dryRun) {
run("git remote update origin >&2"); run("git remote update origin >&2");
run("git push origin $rev:refs/heads/$channelName >&2"); run("git push origin $rev:refs/heads/$channelName >&2");
# s-maxage=600: Serve from cache for 5 minutes. # maxage=600: Serve from cache for 5 minutes.
# stale-while-revaliadate=1800: Serve from cache while updating in the background for 30 minutes. # stale-while-revaliadate=1800: Serve from cache while updating in the background for 30 minutes.
# https://web.dev/stale-while-revalidate/ # https://web.dev/stale-while-revalidate/
# https://developer.fastly.com/learning/concepts/cache-freshness/ # https://developer.fastly.com/learning/concepts/cache-freshness/
my $cache_control = "s-maxage=600,stale-while-revalidate=1800,public"; my $cache_control = "maxage=600,stale-while-revalidate=1800,public";
sub redirect { sub redirect {
my ($from, $to) = @_; my ($from, $to) = @_;