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

171
Visualizações
How to refresh HTTP request cache?

Current state

Many answers exist for

  1. Refresh page cache but not the javascript-issued requests' cache
  2. Issue cache: false ajax request
  3. Set Expires header at server-side

Goal state

However, is there a way to do either of the following at client-side?

  1. Refresh the page without (page cache AND requests cache); in fact, the CMD+SHIFT+R reload achieves this purpose on Edge(Mac OS)
  2. Make an ajax request not only retrieve new data(by new timestamp) but also use this data to overwrite the original request cache.

Example: after page /names loads, Javascript GET /api/names?id=<id>; ajax method would GET /api/names?id=<id>&_=<timestamp>, but this does not refresh cache for/api/names

Purpose

Use cache to increase load speed, while also preserving users' flexibility to retrieve updated data.

about 4 years ago · Juan Pablo Isaza
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