From 79aaaa252341d41f0afb379365794e184da5edfd Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 8 Nov 2016 13:47:08 +0000 Subject: [PATCH] conform to standard by sending cache information with 304 response svn path=/trunk/; revision=39 --- static.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static.sh b/static.sh index ec860c6..44c6556 100755 --- a/static.sh +++ b/static.sh @@ -30,7 +30,8 @@ suffix[css]="text/css" if [ -x "$file" -o \! -r "$file" -o \! -f "$file" ]; then printf 'HTTP/1.1 403 Forbidden\r\n\r\n' elif [ "$date" = "$HTTP_IF_NONE_MATCH" ]; then - printf 'HTTP/1.1 304 Not Modified\r\n\r\n' + printf 'HTTP/1.1 304 Not Modified\r\n' + printf 'Etag: %s\r\n\r\n' "$date" else length="$(stat -c %s "$file")" magic="${suffix[${file##*.}]:-$(file -bi "$file")}" -- 2.39.2