make lastModified work in route