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

232
Visualizações
Can I cache images these are refreshing after time interval in php?

Hello I am working on chat application and I have user profile images these are refreshing after 1s interval using Js. After 1s my Js script send request to server and on server side it check if user have profile image in database then it send all users profile images. This make user profile images blinking after 1s. I want to cache user profile images so that it can't load images from server again and again. First time it load from server and cache images in browser and then for each request it get images from cache not from server. But when user update their profile image then it must load updated profile image from server.

Please tell if it's possible.. Thanks in advance..

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can use this meta tag for caching images :

<meta http-equiv="Cache-control" content="public" />
about 4 years ago · Juan Pablo Isaza Relatório
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