cache: Handle Last-Modified and If-Modified-Since.

This solves #13.