2023년 12월 28일 목요일

fetch + progress

fetch + progress

 

요약

  • ArrayBuffer 다운로드 방식을 커스텀


예) react + fetch + progress



gzip encoding 시 content length 값 문제

Transfer-Encoding: gzip

증상:
  • gzip encoding 시 content-length 는 압축된 데이터 크기이기 때문에 실제 데이터 보다 크기가 작다

우회:
  • 요청 헤더에 Accept-Encoding 을 명시하여 gzip 방지
    • 주의: 서버 구현에 따름




댓글 없음:

댓글 쓰기