Next.js Discord

Discord Forum

Does next/image cache images with paths based on api endpoints?

Unanswered
American Bobtail posted this in #help-forum
Open in Discord
American BobtailOP
Hi guys, I am trying to minimzie the amount of api calls needed for my app. Currently, I am generating an image with the following path.

Ex.
    <Image
      src={`https://maps.googleapis.com/maps/api/staticmap?center=${center}&zoom=12&size=640x480&style=YOUR_ENCODED_STYLE_HERE&key=YOUR_API_KEY`}
      ...
    />


Will this image be cached or will I need to do a request for each image load?

0 Replies