Unidiff1 files changed, 4 insertions, 0 deletions
|
diff --git a/cgit.c b/cgit.c index 19adadd..ae20257 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -208,2 +208,3 @@ static void prepare_context(struct cgit_context *ctx) |
208 | ctx->page.expires = ctx->page.modified; |
208 | ctx->page.expires = ctx->page.modified; |
| |
209 | ctx->page.etag = NULL; |
209 | } |
210 | } |
@@ -433,2 +434,3 @@ int main(int argc, const char **argv) |
433 | const char *cgit_config_env = getenv("CGIT_CONFIG"); |
434 | const char *cgit_config_env = getenv("CGIT_CONFIG"); |
| |
435 | const char *method = getenv("REQUEST_METHOD"); |
434 | const char *path; |
436 | const char *path; |
@@ -479,2 +481,4 @@ int main(int argc, const char **argv) |
479 | ctx.page.expires += ttl*60; |
481 | ctx.page.expires += ttl*60; |
| |
482 | if (method && !strcmp(method, "HEAD")) |
| |
483 | ctx.cfg.nocache = 1; |
480 | if (ctx.cfg.nocache) |
484 | if (ctx.cfg.nocache) |
|