I may be erring and the effect of my suggestion may depend on the kind of server you are running.
But to do two things at the same time, i.e. serve (and touch) one file and at the same time touch the containing directory, you must concentrate both actions in 1 “command“. This calls for a programmed routine that your server must execute in lieu of simply serving the file.
I had hoped to find an automatism which can be triggered by the .htaccess file (apache-like web-servers) but this appears to be tricky, completely over my head, or downright impossible (all at once probably). Not fun, AFAIS.
Last edited by Michael Uplawski; 04-13-2018 at 04:37 AM.
Reason: cosmetics
|