Truncate resource data if too long