Fix If-Modified-Since handling

Change-Id: Ie99df26b4edac01c183f620d36e86acd76e5ae6f