Expiring contest cache when adding a problem to it and fixing invalid asumption on cookie existance in parseUrl