Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
.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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!