Welcome! Log In Create A New Profile


Static ETags

March 16, 2012 11:29AM
Hi Everyone,
I had a look at the Static Etag 3rd party module, and noticed a few things:

1) There is a memory leak, a malloc() requesting 1000 bytes is called, but never free()'d
2) Doesn't check headers from client to see if there is a "If-None-Matched:" header, so all it does is generate etags, never checks
3) Not very robust.

I've written the author Mike West a couple of times but got no reply. So I took it upon myself to fix. Below is the github with the fixed version. This is my first nginx module, so please critique as much as you can. I'm still getting acquainted with the code.

Subject Author Posted

Static ETags

trojan2748 March 16, 2012 11:29AM

Re: Static ETags

Valentin V. Bartenev March 16, 2012 12:14PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready