Devs,<br><br> I just created a new VMOD [0] and would love if some of you could look over it. It's my first one. The primary reason I created it was so that I could avoid having to have inline C in my VCL as suggested at [1]. I asked about this a few weeks ago on IRC and was told the best way to contribute a way of doing this was to create a VMOD. Ironically, today when I was getting ready to publish my VMOD, I came across [2] where one of the two things I needed to accomplish was discussed. However, my VMOD goes beyond what was discussed in that patch in order to provide additional functionality.<br>
<br> Please let me know what you think. Also, if you know how to address the TODO listed at [3], please let me know! Thanks!<br><br> NOTE: This VMOD has only been tested locally, and not in production yet. I hope to be putting it into production in the next few weeks if all goes well. All feedback welcome.<br>
<br>Jeremy Thomerson<br><br>[0] - <a href="https://github.com/jthomerson/libvmod-timeutils/">https://github.com/jthomerson/libvmod-timeutils/</a><br>[1] - <a href="https://www.varnish-cache.org/trac/wiki/VCLExampleSetExpires?version=1">https://www.varnish-cache.org/trac/wiki/VCLExampleSetExpires?version=1</a><br>
[2] - <a href="https://www.varnish-cache.org/lists/pipermail/varnish-dev/2012-October/007308.html">https://www.varnish-cache.org/lists/pipermail/varnish-dev/2012-October/007308.html</a><br>[3] - <a href="https://github.com/jthomerson/libvmod-timeutils/blob/8d2921fe02ba778cc37b37aba62d226ee8f9f235/src/tests/expires_from_cache_control.vtc#L33">https://github.com/jthomerson/libvmod-timeutils/blob/8d2921fe02ba778cc37b37aba62d226ee8f9f235/src/tests/expires_from_cache_control.vtc#L33</a><br>
<br>