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
Serve page from cache on navigation back

Basically what I want is this: https://dev.to/videos

You can select an item -> new page with item loads -> you click on backward button -> the old page is loaded from cache

I want that the same search page shown to user on navigation back, without calling the async fetch method again.

A solution seems to be SPA? But that is an enormous overhead. I know how to do this with SPA. I need way without SPA.

iPhone, Android and Safari have a backforward-cache enabled by default, so no problem there. Static pages also don't have any problems.

I don't need any excact JavaScript code. I just want to know how do other websites solve this problem? Is SPA the only way? Are there any "frameworks" to solve this problem?

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

0

If server allows the page to be cached, your browser won't send a request again before the page expires.

https://stackoverflow.com/a/36554152/14263615

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