I'm trying to make a script whereby I can keep an eye on when files are changed so their content can be updated on the master database. What would be the best way of detecting a file change via HTTP (i.e., seeing if mysite.com/myfile.html has been changed, changed its filesize, etc.)?
I've thought of two ways: by comparing the values of the filesize through the HTTP HEAD request, or to try and get a HTTP/304 (cached) status? Either way, how would this be coded, as I lack experience in this area... Thanks for the help in advance 🙂