added cache validator based on file size and last modification time