Is cache: "force-cache" being applied for <CldImage/>? Or does the image get fetched every refresh? #400
Unanswered
IshfaqAhmedProg
asked this question in
Q&A
Replies: 1 comment 2 replies
-
hey @IshfaqAhmedProg im not totally sure on the context of Server Actions here, but generally speaking, Cloudinary returns cache control headers which browsers will see and respect, where the next time a visitor visits the page those images will be loaded from memory instead, unless the browser determines not to for whatever reason including the user selecting to disable cache this really has nothing to do with Next.js though. this is a pretty general practice that you'll see with any image or static asset provider |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Now that Next JS 13/14 has server actions what is the option for caching and are the images being cached? Or does the image load everytime the user refreshes the page? If not does anyone know how to set up caching for the images to keep the cloudinary cost low so that the images are not loaded in at every refresh, while using ?
Beta Was this translation helpful? Give feedback.
All reactions