We're planning on using gzippo in our start-up, but we needed it to respond to modification checks so we don't negate the gain from compressing the files by requiring them to be downloaded by the client on every request, so I've added two related changes to gzippo:
There's also a test for the new code and it passes, and I tried to match your programming style, so hopefully you'll accept these changes. :)
Added the following to gzippo: 1) Add Date, Last-Modified, and Expire…
…s headers so client-side caching works on gzipped files. 2) Add 304 HTTP Header response if client requests confirmation that current cached version is most up-to-date.
Added the proper response headers for the 304 path and removed the 'c…
…hattiness' with the console.log code accidentally left in.
Working on the test. Still not fully functional (even though I've alr…
…eady tested this in the 'real world' with Express and Firefox.
I discovered a bug in my code writing the test. I had the comparison …
…backwards (>= instead of <= as it should have been) and that's why the test was failing. I'm converted to TDD.
Thanks for the contribution! I have made some minor adjustments and just need to do some further testing before I deploy gzippo 0.0.4
Sounds good. I like the changes I see so far.