Add response headers for miss/hit
Moved Id generation to seperate classes