By jamboauction
I recently noticed that when we try to access our site via a new browser. The first search takes a really long time to load. Almost a minute. Subsequent searches for the page lead to instant results. Some online research indicates it could be a server side issue. What settings can I change to stop this behavior?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I fully agree with what @KFSys mentioned. One extra thing that I could suggest is to open your browser developer tools and check the network tab and the console and look for some errors in there.
It is possible that the site is pulling very large images or other static assets which could also explain the slowness only for the first request.
Hope that this helps! Regards, Bobby
Hi @jamboauction,
Usually, the Time To First Byte - TTTB is serverside, yes. Having said that, this can be caused from your application as well.
Looking into the server itself, there isn’t one option that you cna turn on and it to start working. What I’ll suggest is to try and optimize your server by using a caching service like Redis for instance.
Additionally, my recommendation would be to install OPcache for some server-side caching and add PHP-FPM to it.
Oh, and make sure you are using the latest PHP version.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.