parse cache-control and last-modified headers