basic handling of cache headers
added tests