nginx-static-etags
nginx-static-etags copied to clipboard
Nginx doesn't generate etags for static content. I'd like it to. Let's see if I can remember some C from college.
This module returns the HTTP header as "Etag". Normally servers return "ETag" --> uppercase 'T'. I am not sure if HTTP headers should be case sensitive though.
the module leaks memory in ``` c str_buffer = malloc( str_len + sizeof(char) ); ``` should use ngx_pcalloc() while do not manage to free after yourself
After compiling nginx with this module FileETag is still unknown.