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

178
Visualizações
.htaccess do not preload files on Ajax calls

I have some website running with PHP. In my .htaccess I have added the following directives:

<FilesMatch "index.php">
        Header add Link "</css/bootstrap.min.css>; rel=preload; as=style"
</FilesMatch>

The websites main content is solely called via the index.php, like this https://somedomain.com or https://somedomain.com/?feature=a.

Within the website I am using Ajax to call further data, from URIs like https://somedomain.com/ajax.php?load=this.

Recently Google Chrome started throwing warnings in the dev console with every Ajax call that is done, like that:

The resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally.

Is that a bug in Chrome or is there something wrong with my .htaccess?

Thank you.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Seems like the issue was a bug in Google Chrome. Since today Chrome doesn't throw the warning anymore.

over 4 years ago · Santiago Trujillo 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