Home › Forums › Front-end Issues › Cache-Proof Random Image From Gallery › Reply To: Cache-Proof Random Image From Gallery
You can’t prevent a browser from caching a page. Outputting HTML with a new random image every time would depend on what server side cache you’re using. It may be possible with some but you’d need to look into the cache that you’re using. The might be able to load the image using AJAX, but you’d need to vary the URL that is requested each time as well so that the browser thinks it’s getting something different.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.