change variable 'etag' to 'lastModified' to reflect its meaning