Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
.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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda