removing debug code and adding cache control header