]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add support for ETag in 'plain' view
[ps-cgit] / ui-shared.c
index de77bbfadf86dd08e794145395ca1e20e1f63e9c..86a7d29cbc7263c2614229ed7909790eacb884a8 100644 (file)
@@ -468,6 +468,8 @@ void cgit_print_http_headers(struct cgit_context *ctx)
                      ctx->page.filename);
        htmlf("Last-Modified: %s\n", http_date(ctx->page.modified));
        htmlf("Expires: %s\n", http_date(ctx->page.expires));
+       if (ctx->page.etag)
+               htmlf("ETag: \"%s\"\n", ctx->page.etag);
        html("\n");
 }