From f396611776e7ed6f1a070569a338ad56461b099e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 6 Jan 2018 14:43:45 +0100 Subject: publish: Save bandwidth on narinfo 404s. This saves 18 bytes on each 404 narinfo response. * guix/scripts/publish.scm (render-narinfo): Pass #:phrase to 'not-found'. (render-narinfo/cached): Likewise. --- guix/scripts/publish.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guix/scripts/publish.scm b/guix/scripts/publish.scm index dd54f03996..3f3bc26972 100644 --- a/guix/scripts/publish.scm +++ b/guix/scripts/publish.scm @@ -1,6 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2015 David Thompson -;;; Copyright © 2015, 2016, 2017 Ludovic Courtès +;;; Copyright © 2015, 2016, 2017, 2018 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; @@ -326,7 +326,7 @@ advertise it as the maximum validity period (in seconds) via the appropriate duration. NAR-PATH specifies the prefix for nar URLs." (let ((store-path (hash-part->path store hash))) (if (string-null? store-path) - (not-found request) + (not-found request #:phrase "") (values `((content-type . (application/x-nix-narinfo)) ,@(if ttl `((cache-control (max-age . ,ttl))) @@ -461,7 +461,7 @@ requested using POOL." #:phrase "We're baking it" #:ttl 300)) ;should be available within 5m (else - (not-found request))))) + (not-found request #:phrase ""))))) (define* (bake-narinfo+nar cache item #:key ttl (compression %no-compression) -- cgit v1.2.3 alue='grep'>log msg
AgeCommit message (Expand)Author
2021-03-17maint: Check whether Guile-zlib is recent enough....Ludovic Courtès
2021-02-04build: Add '--with-channel-commit' and related configure flags....Ludovic Courtès
2020-12-27maint: Remove unused '--with-nix-prefix' configure option....Ludovic Courtès
2020-12-19maint: Require Guile >= 2.2.6....Ludovic Courtès
2020-12-11maint: Avoid macros obsolete in Autoconf 2.70....Ludovic Courtès
2020-11-29Make "guile-avahi" dependency optional....Mathieu Othacehe
2020-11-29Add Avahi support....Mathieu Othacehe
2020-10-22git: Require Guile-Git 0.3.0 or later....Ludovic Courtès
2020-10-05build: Use a 'guile' executable that doesn't warn about locales....Ludovic Courtès
2020-08-29build: Remove references to the 'nix-hash' program....Ludovic Courtès
2020-08-29build: Remove check for Guile 2.2.1 bug....Ludovic Courtès
2020-08-24Use "guile-zlib" and "guile-lzlib" instead of (guix config)....Mathieu Othacehe
2020-06-16etc: Add committer script....Ricardo Wurmus
2020-05-28maint: Check whether Guile-Gcrypt is recent enough....Ludovic Courtès
2020-05-14etc: indent-code.el: Use the --quick option....Maxim Cournoyer
2020-04-23build: Don't build man pages when cross-compiling....Ludovic Courtès
2020-03-11build: Require Guile 2.2.3 or later....Ludovic Courtès
2020-01-17build: Allow builds with Guile 3.0....Ludovic Courtès
2019-11-09build: Warn about etc/indent-code.el when Emacs is absent....zimoun
2019-07-25maint: Switch to Guile-JSON 3.x....Ludovic Courtès
2019-05-06Add (guix lzlib)....Pierre Neidhardt
2019-04-17build: No longer substitute 'LIBGCRYPT'....Ludovic Courtès
2019-01-17configure: Disable installer build by default....Mathieu Othacehe
2019-01-17gnu: Add graphical installer support....Mathieu Othacehe
2019-01-09build: Require Guile 2.2....Ludovic Courtès
2018-12-02Make Guile-JSON a required dependency....Eric Bavier
2018-10-12build: Fine-tune the forbidden M4 patterns....Ludovic Courtès
2018-10-12build: Remove obsolete reference to 'GUIX_ASSERT_LIBGCRYPT_USABLE'....Ludovic Courtès
2018-09-04Switch to Guile-Gcrypt....Ludovic Courtès