disable caching if file name too long (workaround only. appears to be a rails bug, need to investigate this)