WEBVTT

00:00:00.000 --> 00:00:06.000
How does a browser know which kind of file arrived?

00:00:06.000 --> 00:00:13.000
The response Content-Type identifies the media type the server says it is sending.

00:00:13.000 --> 00:00:18.000
Check the type in the actual response.
6 MIME-type basics.

00:00:18.000 --> 00:00:30.000
Read the type and subtype
A media type combines a general category with a specific subtype.
General type · Slash separator · Specific subtype

00:00:30.000 --> 00:00:42.000
Look at a real example
A response such as text/html identifies HTML content.
text/html · HTML content · Browser handling

00:00:42.000 --> 00:00:54.000
Inspect the response header
The server normally supplies the type in Content-Type.
Server response · Content-Type header · Actual value

00:00:54.000 --> 00:01:06.000
Keep file and type consistent
The browser needs a suitable type for the content it receives.
Actual content · Suitable type · Correct handling

00:01:06.000 --> 00:01:18.000
Check text parameters
A charset parameter can describe the encoding used for text.
Text response · Charset parameter · Matching encoding

00:01:18.000 --> 00:01:30.000
Test the receiving application
Check that the intended browser or application opens the resource correctly.
Intended application · Expected behaviour · Useful result

00:01:30.000 --> 00:01:39.000
Your checklist
Read the type and subtype · Look at a real example · Inspect the response header · Keep file and type consistent · Check text parameters · Test the receiving application

00:01:39.000 --> 00:01:47.000
Ask your developer to check the response type and the actual file together.
jerseyweb.je
