Better caching of static resources

Nothing was done with the If-Modified-Since header in the request, now a 304 is sent back when this header is set. This results in a noticeable speed improvement when refreshing a page.

Maybe this code should be moved to the cache-headers plugin one day.