sets various content types for files based on extensions