Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

205
Visualizações
Why does my browser refetch an image that is in cache

Basically I have a React app that uses a lot of images. In order for it to run smoothly, I first fetched every image I will need so that it is saved in cache and can be displayed quicker. I expect that when I do need to use those images in my components, they can just be loaded from memory and don't have to be fetched again. However, this is not the case for some reason. As you can see below, the same image is fetched twice (first during initialization and second during component mount). By the way, the images have the same name and are fetched from the same server that's also hosting the app. I don't understand why my browser (Chrome) is not recognizing the fact that it has downloaded those images already. I thought it auto-detects if a file is in cache already? Is there a way to check if a file is in cache?

enter image description here

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda