Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIME type #18

Open
yejineee opened this issue May 16, 2021 · 0 comments
Open

MIME type #18

yejineee opened this issue May 16, 2021 · 0 comments
Labels

Comments

@yejineee
Copy link
Owner

yejineee commented May 16, 2021

MIME type

  • Multipurpose Internet Mail Extensions
  • media type은 document의 포맷이나 특성을 알려주기 위한 기준이다.
  • web browser에게 파일 확장자는 의미가 없다. 따라서 각 문서에 맞는 MIME 타입을 전송하여, 브라우저가 리소스를 받았을 때 해야할 기본 동작이 무엇인지를 알 수 있도록 해야한다.

구조

type/subtype

web developer에게 중요한 MIME type

  • application/octet-stream : binary file의 디폴트 타입이다.
  • text/plain : text file의 기본값이다.
  • text/css : css file
  • text/javascript : Javascript file

출처

https://developer.mozilla.org/ko/docs/Web/HTTP/Basics_of_HTTP/MIME_types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant