Index: samesite.py ================================================================== --- samesite.py +++ samesite.py @@ -210,11 +210,12 @@ if not reload and 'Pragma' in record and record['Pragma'] == 'no-cache': info +='\nPragma on: recheck imminent.' recheck = True # skipping file processing if there's no need to recheck it and we have checked it at least 4 hours ago - if not recheck and not reload and '_time' in record and (datetime.datetime.now() - datetime.timedelta(hours = 4) - record['_time']).days < 0: + if not recheck and not reload and '_time' in record and (record['_time'] - datetime.datetime.now() + datetime.timedelta(hours = 4)).days < 0: + info += '\nFile is old - rechecking.' recheck = True print(info) if reload or recheck: