Way to force refresh site

Godaddy has started to cache my website pages. The biggest problem is caching of my home page (Currently running Bl 5.4.2, php 8.1). If I update php plugins, menus, etc., it can take hours before the cache gets invalidated. The ONLY way I’ve found to force a cache fault is to add a unique query string,

  i.e. myurl/?bogusparam=bogusvalue. 

While useful for my own testing, this in no way ensures that web users trying to reach my page will get the current contents.

I know it’s a stretch, but is there any way to force this in Bl?

Outside of BL, I had (up until recently) a page that displayed a PNG file, in php. Seperately, I had a program (“GRLevel3”) that would use FTP to upload a refreshed file that the PNG opened. (File was an output of a current radar image…from the program that storm chasers use…and would upload a new file whenever the radar data refreshed.) Even though the file itself had constantly (every 10 minutes or so) changing contents and timestamps, the cached file would display on request, not the current one.

The only way I could figure out how to get around the caching “services” was to instead of just sending html with the link tag pointing to the file, was to send JavaScript to get the current timestamp and put that on the call to the index PHP file with the query string /?t= current time string. Since the current time is constantly changing (assuming you believe in the space/time continuum…) this always forced a refresh. It’s totally bogus, but the only way around caching-an anathema to the design of Backlight.

That’s annoying. I think first step would be to get into your GoDaddy configuration, and see whether there’s an option to disable the caching. It simply be they installed an update on your hosting and it defaults to having that caching turned on.

If you cannot find such an option, it may be worth reaching out to GoDaddy support.

If that doesn’t work, you might be able to disable caching via .htaccess. Be careful with this, though, and please make a backup of your current .htaccess file before you start hacking on it.