Images Not Refreshing - Question | JoomShaper

Images Not Refreshing

DK

Derek Koopowitz

SP Page Builder 1 year ago

I'm using the latest SP PageBuilder on Joomla 4 (latest version) and on the main page (of the website) I am displaying a camera image (camera1.jpg) that is uploaded to a folder on the Joomla server. I use the Raw HTML element to do this with the following HTML: <img src="/images/EBRC_Images/camera1.jpg".

This display of the image works great, however, any new updates that are copied over the existing image (camera1.jpg) are not being displayed on the web page when one refreshes the browser.

Every 30 seconds the camera software takes a snapshot and the camera image is FTP'd to the Joomla server to the FTP folder, and then a PHP script is run every every minute (via CRON) to copy the latest camera image from the FTP folder to the same location as the original camera1.jpg file essentially replacing the camera1.jpg file with the latest camera image that was FTP'd over to the server.

What I would like to find out is how can the image be refreshed when one views the main page of the website so it shows the latest image? The only way to do this is to delete the browser cache and then refresh the page. This should be automatic and the user shouldn't have to delete the browser cache and then refresh the page to see the latest image. The user should just be able to connect to the website and it should display the latest image (or keep constantly refreshing the page to see the latest image).

I know this works when one changes an image on a page and when one goes to view that page it picks up the new image. However, when one uses the same name for the image and replaces it with new content then the latest image is not being displayed.

0
1 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 1 year ago #150552

Hi Derek,

in looks like server cache, if You claim to have caching disabled in Joomla.

Make a simple test: This time please use Joomla Core Module - Custom. And inside put your HTML code with image etc. Then publish it on "content-bottom" position (assign to selected menu items) instead using our Raw HTML addon in Page. Then make changes as you did before. It will tell us more.

If this method will work better for that camera view, just keep it.


I also saw that you enabled Production mode in SPPB Settings - it also may cache CSS styles.

0