electra: bump website, add cache-control

This commit is contained in:
Gabriel Fontes
2022-08-20 10:12:50 -03:00
parent 795c5ad05e
commit 3ba2cc8de7
2 changed files with 4 additions and 3 deletions
Generated
+3 -3
View File
@@ -529,11 +529,11 @@
"utils": "utils_5"
},
"locked": {
"lastModified": 1660973293,
"narHash": "sha256-sXi9dqkngiOJ5yD9gcpH/JiAKltbjgkmRTZJd+HFdW0=",
"lastModified": 1661000808,
"narHash": "sha256-QKInq+EoGLp8tS3hCRwOdZ5o4BIYHbRkNOm5lVOp/yI=",
"owner": "~misterio",
"repo": "website",
"rev": "226435f4a587d40a71838ba743585f11f0d5a73e",
"rev": "7c194791c5564f5c5083fde09d971bb58225e35e",
"type": "sourcehut"
},
"original": {
+1
View File
@@ -32,6 +32,7 @@ in
root = "${pkgs.website.main}/public";
extraConfig = ''
add_header Last-Modified "${toDateTime inputs.website.lastModified}";
add_header Cache-Control max-age="${toString (60 * 60 * 24 /* One day */)}";
'';
};
};