Whenever a web server sends a resource to the client, it also sends the date the document was modified the last time. Usually, the web server takes this information from the file system, but this header can also be modified or just not sent. But anyway, you can use this information, for instance as shown in the preceding code. Therefore, you can have a more or less realistic modification date on your page. |