X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=static.sh;h=44c6556ed147a91e99218e2600bda85f09972c4b;hp=ec860c6efb3a8a10158a1233ad7fdebcd5ce2eda;hb=35f560db17b766582184a9e37b1d23b3bdb8d7c7;hpb=b3455673aa27e118f55b91fe69a4b07c42dbe3a7 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")}"