I have just started using Cache API of javascript. I need to set a header in all my GET request, hence i passed in my request object to the "add" method like the f