1.1 What is Compatibility View
Compatibility view is a practical function added by Microsoft for IE8 in order to be compatible with websites based on other webpage standards and to ensure that the vast number of Internet users do not suffer from confusion when browsing webpages. When IE8 detects that a website is incompatible, the compatibility View button appears on the right side of the address bar. With a little click, most pages will display normally. IE9 and above also have this function.
1.2 Description of Content-Type in REST Interface Background Response
The current environment is set up in support MediaTypes in om-context.xml
We use Spring MVC, so even if you set the response header information using the response object in the controller layer, it's useless, because if you identify the @Responsebody annotation, Spring automatically determines whether you want to convert the return value to a view object based on the type of your return value (depending on the configuration of your Spring MVC, generally json).
Content-type is used to define how the user's browser or related device displays the data to be loaded, or how to process the data to be loaded. The value of this property can see the MIME type. MIME (Multipurpose Internet Mail Extensions, Multipurpose Internet Mail Extensions) is an Internet standard for describing the type of message content. MIME messages can contain text, images, audio, video and other application-specific data.
Some of the most frequently used MIME types are:
Text/html (HTML document)
Text/plain (plain text)
Text/css (CSS Style Sheet)
Image/gif (GIF image)
Image/jpeg (JPG image)
Application/x-javascript (JavaScript script)
Application/x-shockwave-flash (Flash)
Application/x-www-form-urlencoded (forms submitted using the POST method of HTTP)
Multipartition/form-data (ibid., but mainly used in the case of file upload accompanied by form submission)