From 8d77380ff3474edadb0dee91d6712e62302e4f1d Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 22 May 2019 19:23:21 +0800 Subject: [PATCH] nixbld: disable ARTIQ manual caching in nginx --- nixbld-etc-nixos/configuration.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 706b64c..8833d03 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -230,8 +230,22 @@ ACTION=="add", SUBSYSTEM=="tty", \ locations."/gateware.html".extraConfig = '' return 301 /migen/; ''; - locations."/artiq/manual-beta".alias = "${hydraWwwOutputs}/artiq-manual-html-beta/share/doc/artiq-manual/html"; - locations."/artiq/manual-beta.pdf".alias = "${hydraWwwOutputs}/artiq-manual-latexpdf-beta/share/doc/artiq-manual/ARTIQ.pdf"; + locations."/artiq/manual-beta" = { + alias = "${hydraWwwOutputs}/artiq-manual-html-beta/share/doc/artiq-manual/html"; + extraConfig = '' + etag off; + if_modified_since off; + add_header last-modified ""; + ''; + }; + locations."/artiq/manual-beta.pdf" = { + alias = "${hydraWwwOutputs}/artiq-manual-latexpdf-beta/share/doc/artiq-manual/ARTIQ.pdf"; + extraConfig = '' + etag off; + if_modified_since off; + add_header last-modified ""; + ''; + }; }; "www.m-labs.hk" = { addSSL = true;