Add support for ETag in 'plain' view

When downloading a blob identified by its path, the client might want
to know if the blob has been modified since a previous download of the
same path. To this end, an ETag containing the blob SHA1 seems to be
ideal.

Todo: add support for HEAD requests...

Suggested-by: Owen Taylor <otaylor@redhat.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
这个提交包含在:
Lars Hjemli
2009-02-19 22:38:36 +01:00
父节点 6063e7b553
当前提交 488a214a81
共有 4 个文件被更改,包括 5 次插入0 次删除

1
cgit.h
查看文件

@@ -180,6 +180,7 @@ struct cgit_page {
char *mimetype;
char *charset;
char *filename;
char *etag;
char *title;
};