Next.js Discord

Discord Forum

What the best way to cache data at my api

Answered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
Just question 🤔
Answered by B33fb0n3
You can see the stuff that you should change under it, to imrove your performance value: (see attached)
For example work on the images & the biggest/first image

Take a look at it here: https://pagespeed.web.dev/analysis/https-nuvex-bot-xyz/scmwxcf1i2?form_factor=mobile&hl=en
View full answer

14 Replies

@Asian black bear Just question 🤔
read this: https://nextjs.org/docs/app/building-your-application/data-fetching/fetching
That's best practice and a pretty helpful guide on how to cache data perfectly

I guess the most interesting part for you is this one: [Click ME](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#caching-data-with-an-orm-or-database)
@Asian black bear solved?
@B33fb0n3 <@1264023656674103459> solved?
Asian black bearOP
yep thank, but i don't know why my website soo slow on phones
@Asian black bear yep thank, but i don't know why my website soo slow on phones
is it slow only on mobile or on desktop as well? If only on mobile: share the public url
yep only on phones
@Asian black bear https://nuvex-bot.xyz/
hmm... your website loads pretty fast on my phone. Maybe there is something wrong with your cloudflare configuration as it's directly visible instead of checking the request in the background
@Asian black bear I removed cloud flare try again also with dashboard
your website still loads pretty fast on my phone. As you removed your cloudflare, search engines can now index your site good (as you can see on the good seo score now).

I don't see any long loading times on mobile. So maybe it's just your internet connection on your phone (your WLAN)
@Asian black bear so how i can improve my web performance
You can see the stuff that you should change under it, to imrove your performance value: (see attached)
For example work on the images & the biggest/first image

Take a look at it here: https://pagespeed.web.dev/analysis/https-nuvex-bot-xyz/scmwxcf1i2?form_factor=mobile&hl=en
Answer
@Asian black bear solved?
@B33fb0n3 <@1264023656674103459> solved?
Asian black bearOP
Yep but i face new error