MCPcopy Index your code
hub / github.com/git/git / hdr_cache_forever

Function hdr_cache_forever

http-backend.c:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static void hdr_cache_forever(struct strbuf *hdr)
123{
124 timestamp_t now = time(NULL);
125 hdr_date(hdr, "Date", now);
126 hdr_date(hdr, "Expires", now + 31536000);
127 hdr_str(hdr, "Cache-Control", "public, max-age=31536000");
128}
129
130static void end_headers(struct strbuf *hdr)
131{

Callers 3

get_loose_objectFunction · 0.85
get_pack_fileFunction · 0.85
get_idx_fileFunction · 0.85

Calls 2

hdr_dateFunction · 0.85
hdr_strFunction · 0.85

Tested by

no test coverage detected