After doing some more testing my problem is a little different than I first thought. To avoid confusion I decided to rewrite my question.
For about a year my game has used an internal .json file for daily puzzle data. Unfortunately, every time I add new content I have to completely re-publish my game, so I thought it would be easier to make the .json file external.
I removed the internal file and set up a spot on my website for the new file. When I run the game it downloads the .json file and runs. (Without the .json file the game wouldn't work at all.) But it's not downloading the correct file somehow.
I look at the file that is on my website, and then I print out the AJAX.LastData text and they don't match at all! (They may have matched the first time I uploaded the .json file, but I have been deleting the old files and uploading new ones. It's not downloading the new ones!)
Anyone know why this might be happening?
SOLVED: I turned to ChatGPT this morning and explained my problem. As suspected, it suggested a caching issue and provided several solutions. The first thing I tried didn't work (adding some APACHE code to my .httaccess file to prevent the .json file from being cached). But it also proposed that I add a unique query string to my download URL, which DID work:
"https://worddad.com/download/output.json?v=" & current_date
I probably need to change "current_date" to a timestamp. I think that variable is just the day, in text format. But this change fixed my problem!!