forked from the-distro/channel-scripts
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:
parent
4587d77d92
commit
20845261a3
|
@ -325,11 +325,11 @@ if ($dryRun) {
|
|||
run("git remote update origin >&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.
|
||||
# https://web.dev/stale-while-revalidate/
|
||||
# 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 {
|
||||
my ($from, $to) = @_;
|
||||
|
|
Loading…
Reference in a new issue