Support

Account

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.