Ubiquiti cameras have an anonymous mode that allows an instantaneous snapshot via url. Is there a way to prevent caching of the image so that it reloads every time the page/plan is opened?
Modifying the query parameter to the url does not appear to prevent caching of this snapshot from a doorbell camera. The image only loads once on browser reload, not each time the page/plan is opened.
Element: Image
Image source: Remote
Image url: http://192.168.1.17/snap.jpeg
Refresh interval: blank
Additional classes: nocache
Custom javascript
Modifying the query parameter to the url does not appear to prevent caching of this snapshot from a doorbell camera. The image only loads once on browser reload, not each time the page/plan is opened.
Element: Image
Image source: Remote
Image url: http://192.168.1.17/snap.jpeg
Refresh interval: blank
Additional classes: nocache
Custom javascript
Code:
$(function(){
$('.nocache').find('img').attr('src', function () { return $(this).attr('src') + "?a=" + performance.now() });
});