Fix If-Modified-Since handling

When handling If-Modified-Since header we should compare same datatypes, either int to int or Date to Date, not  int to Date like it was before.