티스토리 뷰

현상

  • 크롬 dev 환경으로 빌드했는데, 해당 에러 페이지가 뜨면서 정상적인 페이지가 노출되지 않음
  • 사파리에서는 정상 작동
  • 크롬 시크릿 모드에서도 정상 작동
  • 콘솔 찍어보니 IndexedDB를 불러오기는 하는데 오브젝트 스토어가 비어있음.

해결

  • 비슷한 사례 존재. cache clear랑 뭔가 관련이 있는 것 같다는 생각.

  • 구글 디벨로퍼 페이지에서 이런 말을 발견

    Because of this, it's critically important that you always implement proper error handling in your IndexedDB code. This also means it's generally a good idea to keep application state in memory (in addition to storing it), so the UI doesn't break when running in private browsing mode or when storage space isn't available

  • 마지막 줄을 읽어보니 스토리지 스페이스가 충분치 않으면 에러가 날 수 있다는 말이라 브라우저 캐시를 모든 기간에 대해 all clear하니까 정상 작동.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함