I've just tried document.lastModified
but it is returning the system date and time NOT the html file last modified date and time as expected.
It is very odd behavior.
How I checked this:
I have inserted the command into the js then I looked up into the document property at run time with google chrome dev tools in debug interruption/break point mode: every time I point the mouse onto document.lastmodified
property it changes accordingly with the system time and updates every second, without exiting the html document, without saving it elsewhere and without reloading into the browser, without doing anything else to it with any editor.
Then I deactivated the break point and I let the code execute freely and it returns the system time too as the first check...
This double check lets me think that the command is not correctly interpreted from the browser anymore.
Is the command document.lastModified
some way "broken"?
EDIT: The file I'm talking about is a local not a server file, so no http requests or headers involved.
..._ _ _...