Randy_Johnson's avatar

ReactJS Carousel Requesting server on every slide

ReactJS Carousel Requesting server on every slide, surely this shouldn't be happening since the image should be stored in a cache right. If the carousel was left to run it would be making requests every 5 seconds which it is set to.

Is there a way to have a carousel in Reactjs and once the page has loaded, not make anymore requests for the images in that specific carousel.

0 likes
3 replies
MohamedTammam's avatar

Make sure you're not just getting that behavior because you're disabling browser cache while opening the dev tools.

Randy_Johnson's avatar

@MohamedTammam I check that, in visual code, on the php artisan serve termianl, you can see it keep requesting an image from the server.

Please or to participate in this conversation.