Fixed issue with umask not being set properly
normalize timestamps to nanoseconds
use the current time as the timestamp for cache_control