do 304 requests and cache them in sqlite